More
More
#FFCA28 colour
#FFCA28 is a vivid amber close to CSS gold. RGB 255, 202, 40, HSL 45, 100%, 58%. Black text passes AAA (13.73:1), white fails (1.53:1).
- Nearest CSS name
gold#ffd700 (not an exact match)- Described as
- a vivid amber
- Red, green, blue
- 255, 202, 40
- Material 2014
- Amber 400
- Web safe
- No
- Luminance
- 0.6365 (WCAG relative luminance, 0 is black, 1 is white)
Colour codes
| HEX | #ffca28 | |
|---|---|---|
| RGB | rgb(255, 202, 40) | |
| RGB (percent) | rgb(100% 79.2% 15.7%) | |
| HSL | hsl(45.2, 100%, 57.8%) | |
| HSV / HSB | hsv(45.2, 84.3%, 100%) | |
| HWB | hwb(45.2 15.7% 0%) | |
| CMYK (naive) | cmyk(0%, 21%, 84%, 0%) | |
| CIELAB (D50) | lab(84.34% 9.6 78.71) | |
| OKLCH | oklch(86.22% 0.1681 88.31) | |
| Decimal | 16763432 |
CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.
Contrast with white and black text
| Text | Ratio | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White | 1.53:1 | Fail | Fail | Fail | Fail |
| Black | 13.73:1 | Pass | Pass | Pass | Pass |
Black text is the better choice on #FFCA28 (13.73:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.
Tints and shades
Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).
Colour harmonies
Hue turned around the HSL colour wheel, saturation and lightness kept.
How it looks with colour blindness
Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.
Material Amber palette
CSS
| Text colour | color: #ffca28; | |
|---|---|---|
| Background | background-color: #ffca28; | |
| Border | border: 1px solid #ffca28; | |
| Half transparent | background-color: rgb(255 202 40 / 50%); | |
| Custom property | --colour-main: #ffca28; | |
| Gradient to a darker shade | background: linear-gradient(135deg, #ffca28, #997918); | |
| Gradient from a lighter tint | background: linear-gradient(180deg, #ffdf7e, #ffca28); | |
| Text on this colour | background-color: #ffca28; color: #000; |
Similar named colours
gold#ffd700, distance 3.6khaki#f0e68c, distance 8.4orange#ffa500, distance 8.7palegoldenrod#eee8aa, distance 11burlywood#deb887, distance 11.1navajowhite#ffdead, distance 11.1#285dffComplement of #FFCA28
Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.
Convert #FFCA28 to other formats · Build a palette from it · Check contrast · All named colours
Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.