#AFB74F#AFB74F
#AFB74F is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.2% C 0.128 H 113.1°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB74F |
|---|---|
| RGB | rgb(175, 183, 79) |
| HSL | hsl(65, 42%, 51%) |
| HSV | hsv(65, 57%, 72%) |
| CMYK | cmyk(4.4%, 0%, 56.8%, 28.2%) |
| CIE-LAB | lab(71.92, -17.14, 50.88) |
| CIE-LCH | lch(71.92, 53.69, 108.61°) |
| OKLab | oklab(75.2% -0.0504 0.118) |
| OKLCH | oklch(75.2% 0.128 113.1) |
| XYZ | xyz(36.0248, 43.5461, 13.9031) |
| Luminance | 0.4355 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Booger
#9BB53C
ΔE00 4.41
Light Olive Green
#A4BE5C
ΔE00 4.78
Light Olive
#ACBF69
ΔE00 4.79
Sick Green
#9DB92C
ΔE00 5.11
Darkkhaki
#BDB76B
ΔE00 5.43
Mustard Green
#A8B504
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB74F #574FB7
analogous
#B78B4F #AFB74F #7BB74F
triadic
#AFB74F #4FAFB7 #B74FAF
tetradic
#AFB74F #4FB78B #574FB7 #B74F7B
square
#AFB74F #4FB78B #574FB7 #B74F7B
split-complementary
#AFB74F #4F7BB7 #8B4FB7
monochromatic
#5F6329 #888F3A #AFB74F #C3C97A #D6DBA6
Accessibility & contrast
On white
2.16
#AFB74F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.71
#AFB74F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB74F
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB74F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB74F | 1.00 | 2.16 | 9.71 | 9.71 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AF44
Deuteranopia (green-blind)
#C3B155
Tritanopia (blue-blind)
#B9ADA0
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb74f; /* rgb */ color: rgb(175, 183, 79); /* oklch */ color: oklch(75.2% 0.128 113.1);
Tailwind
colors: {
custom: {
50: '#c9cc84',
500: '#afb74f',
950: '#000000',
},
}SCSS
$custom: #afb74f; $custom-light: #c9cc84; $custom-dark: #000000;
JSON
{
"hex": "#afb74f",
"rgb": {
"r": 175,
"g": 183,
"b": 79
},
"hsl": {
"h": 64.615,
"s": 41.935,
"l": 51.373
},
"oklch": {
"l": 0.75204,
"c": 0.12831,
"h": 113.1
},
"luminance": 0.43545
}Semantic roles & 50–950 ramp
primary
#AFB74F
secondary
#9E9AC8
accent
#56D260
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C