#AFB928#AFB928
#AFB928 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.3% C 0.158 H 113.7°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB928 |
|---|---|
| RGB | rgb(175, 185, 40) |
| HSL | hsl(64, 64%, 44%) |
| HSV | hsv(64, 78%, 73%) |
| CMYK | cmyk(5.4%, 0%, 78.4%, 27.5%) |
| CIE-LAB | lab(72.21, -20.41, 66.17) |
| CIE-LCH | lch(72.21, 69.25, 107.14°) |
| OKLab | oklab(75.34% -0.0633 0.1443) |
| OKLCH | oklch(75.34% 0.158 113.7) |
| XYZ | xyz(35.4123, 43.9658, 8.6279) |
| Luminance | 0.4396 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 1.62
Mustard Green
#A8B504
ΔE00 1.87
Bile
#B5C306
ΔE00 3.23
Baby Puke Green
#B6C406
ΔE00 3.47
Pea
#A4BF20
ΔE00 3.60
Puke Green
#9AAE07
ΔE00 4.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB928 #3228B9
analogous
#B97B28 #AFB928 #67B928
triadic
#AFB928 #28AFB9 #B928AF
tetradic
#AFB928 #28B97B #3228B9 #B92867
square
#AFB928 #28B97B #3228B9 #B92867
split-complementary
#AFB928 #2867B9 #7B28B9
monochromatic
#505412 #7F871D #AFB928 #CDD747 #DBE279
Accessibility & contrast
On white
2.14
#AFB928 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.79
#AFB928 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB928
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB928 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB928 | 1.00 | 2.14 | 9.79 | 9.79 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C7B236
Tritanopia (blue-blind)
#BBAE9E
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #afb928; /* rgb */ color: rgb(175, 185, 40); /* oklch */ color: oklch(75.3% 0.158 113.7);
Tailwind
colors: {
custom: {
50: '#cbcd6f',
500: '#afb928',
950: '#000000',
},
}SCSS
$custom: #afb928; $custom-light: #cbcd6f; $custom-dark: #000000;
JSON
{
"hex": "#afb928",
"rgb": {
"r": 175,
"g": 185,
"b": 40
},
"hsl": {
"h": 64.138,
"s": 64.444,
"l": 44.118
},
"oklch": {
"l": 0.75341,
"c": 0.15754,
"h": 113.7
},
"luminance": 0.43965
}Semantic roles & 50–950 ramp
primary
#AFB928
secondary
#7973CA
accent
#40E74C
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B