#AFB418#AFB418
#AFB418 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.159 H 111.7°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB418 |
|---|---|
| RGB | rgb(175, 180, 24) |
| HSL | hsl(62, 76%, 40%) |
| HSV | hsv(62, 87%, 71%) |
| CMYK | cmyk(2.8%, 0%, 86.7%, 29.4%) |
| CIE-LAB | lab(70.75, -18.40, 68.93) |
| CIE-LCH | lch(70.75, 71.34, 104.95°) |
| OKLab | oklab(74.16% -0.0588 0.1475) |
| OKLCH | oklch(74.16% 0.159 111.7) |
| XYZ | xyz(34.1666, 41.8233, 7.1369) |
| Luminance | 0.4182 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.80
Snot
#ACBB0D
ΔE00 2.62
Puke Yellow
#C2BE0E
ΔE00 4.10
Bile
#B5C306
ΔE00 4.19
Puke Green
#9AAE07
ΔE00 4.23
Puke
#A5A502
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB418 #1D18B4
analogous
#B46B18 #AFB418 #61B418
triadic
#AFB418 #18AFB4 #B418AF
tetradic
#AFB418 #18B46B #1D18B4 #B41861
square
#AFB418 #18B46B #1D18B4 #B41861
split-complementary
#AFB418 #1861B4 #6B18B4
monochromatic
#46480A #7B7E11 #AFB418 #DCE227 #E5E95D
Accessibility & contrast
On white
2.24
#AFB418 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.36
#AFB418 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB418
9.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB418 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB418 | 1.00 | 2.24 | 9.36 | 9.36 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AB00
Deuteranopia (green-blind)
#C3AF2A
Tritanopia (blue-blind)
#BCA899
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afb418; /* rgb */ color: rgb(175, 180, 24); /* oklch */ color: oklch(74.2% 0.159 111.7);
Tailwind
colors: {
custom: {
50: '#cbca69',
500: '#afb418',
950: '#000000',
},
}SCSS
$custom: #afb418; $custom-light: #cbca69; $custom-dark: #000000;
JSON
{
"hex": "#afb418",
"rgb": {
"r": 175,
"g": 180,
"b": 24
},
"hsl": {
"h": 61.923,
"s": 76.471,
"l": 40
},
"oklch": {
"l": 0.74155,
"c": 0.15879,
"h": 111.7
},
"luminance": 0.41822
}Semantic roles & 50–950 ramp
primary
#AFB418
secondary
#5E5BCD
accent
#35F33B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A