#AFB251#AFB251
#AFB251 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.1% C 0.121 H 110.6°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB251 |
|---|---|
| RGB | rgb(175, 178, 81) |
| HSL | hsl(62, 39%, 51%) |
| HSV | hsv(62, 54%, 70%) |
| CMYK | cmyk(1.7%, 0%, 54.5%, 30.2%) |
| CIE-LAB | lab(70.56, -14.43, 48.40) |
| CIE-LCH | lch(70.56, 50.51, 106.60°) |
| OKLab | oklab(74.12% -0.0425 0.1129) |
| OKLCH | oklch(74.12% 0.121 110.6) |
| XYZ | xyz(35.0856, 41.5496, 13.9546) |
| Luminance | 0.4155 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.48
Booger
#9BB53C
ΔE00 5.55
Khaki (survey)
#AAA662
ΔE00 5.62
Light Olive
#ACBF69
ΔE00 5.66
Light Olive Green
#A4BE5C
ΔE00 6.03
Vomit
#A2A415
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB251 #5451B2
analogous
#B28451 #AFB251 #7EB251
triadic
#AFB251 #51AFB2 #B251AF
tetradic
#AFB251 #51B284 #5451B2 #B2517E
square
#AFB251 #51B284 #5451B2 #B2517E
split-complementary
#AFB251 #517EB2 #8451B2
monochromatic
#5D5F2A #87893D #AFB251 #C3C57B #D6D8A6
Accessibility & contrast
On white
2.26
#AFB251 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.31
#AFB251 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB251
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB251 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB251 | 1.00 | 2.26 | 9.31 | 9.31 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEAB47
Deuteranopia (green-blind)
#BFAE56
Tritanopia (blue-blind)
#BAA89D
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afb251; /* rgb */ color: rgb(175, 178, 81); /* oklch */ color: oklch(74.1% 0.121 110.6);
Tailwind
colors: {
custom: {
50: '#c9c885',
500: '#afb251',
950: '#000000',
},
}SCSS
$custom: #afb251; $custom-light: #c9c885; $custom-dark: #000000;
JSON
{
"hex": "#afb251",
"rgb": {
"r": 175,
"g": 178,
"b": 81
},
"hsl": {
"h": 61.856,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.7412,
"c": 0.12064,
"h": 110.6
},
"luminance": 0.41549
}Semantic roles & 50–950 ramp
primary
#AFB251
secondary
#9B9AC5
accent
#59CF5D
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C