#AFB74B#AFB74B
#AFB74B is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.2% C 0.132 H 113.1°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB74B |
|---|---|
| RGB | rgb(175, 183, 75) |
| HSL | hsl(64, 43%, 51%) |
| HSV | hsv(64, 59%, 72%) |
| CMYK | cmyk(4.4%, 0%, 59%, 28.2%) |
| CIE-LAB | lab(71.89, -17.45, 52.64) |
| CIE-LCH | lch(71.89, 55.46, 108.33°) |
| OKLab | oklab(75.16% -0.0517 0.1213) |
| OKLCH | oklch(75.16% 0.132 113.1) |
| XYZ | xyz(35.8835, 43.4896, 13.1593) |
| Luminance | 0.4349 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Booger
#9BB53C
ΔE00 4.32
Sick Green
#9DB92C
ΔE00 4.84
Light Olive Green
#A4BE5C
ΔE00 5.06
Mustard Green
#A8B504
ΔE00 5.07
Snot
#ACBB0D
ΔE00 5.14
Light Olive
#ACBF69
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB74B #534BB7
analogous
#B7894B #AFB74B #79B74B
triadic
#AFB74B #4BAFB7 #B74BAF
tetradic
#AFB74B #4BB789 #534BB7 #B74B79
square
#AFB74B #4BB789 #534BB7 #B74B79
split-complementary
#AFB74B #4B79B7 #894BB7
monochromatic
#5D6127 #868D38 #AFB74B #C2C877 #D6DAA2
Accessibility & contrast
On white
2.17
#AFB74B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.70
#AFB74B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB74B
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB74B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB74B | 1.00 | 2.17 | 9.70 | 9.70 |
| #FFFFFF | 2.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AF3F
Deuteranopia (green-blind)
#C4B152
Tritanopia (blue-blind)
#BAADA0
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb74b; /* rgb */ color: rgb(175, 183, 75); /* oklch */ color: oklch(75.2% 0.132 113.1);
Tailwind
colors: {
custom: {
50: '#c9cc81',
500: '#afb74b',
950: '#000000',
},
}SCSS
$custom: #afb74b; $custom-light: #c9cc81; $custom-dark: #000000;
JSON
{
"hex": "#afb74b",
"rgb": {
"r": 175,
"g": 183,
"b": 75
},
"hsl": {
"h": 64.444,
"s": 42.857,
"l": 50.588
},
"oklch": {
"l": 0.75161,
"c": 0.13182,
"h": 113.1
},
"luminance": 0.43489
}Semantic roles & 50–950 ramp
primary
#AFB74B
secondary
#9A97C7
accent
#55D35E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C