#AFB127#AFB127
#AFB127 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.5% C 0.150 H 110.4°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB127 |
|---|---|
| RGB | rgb(175, 177, 39) |
| HSL | hsl(61, 64%, 42%) |
| HSV | hsv(61, 78%, 69%) |
| CMYK | cmyk(1.1%, 0%, 78%, 30.6%) |
| CIE-LAB | lab(69.97, -16.43, 64.47) |
| CIE-LCH | lch(69.97, 66.53, 104.30°) |
| OKLab | oklab(73.55% -0.0523 0.1404) |
| OKLCH | oklch(73.55% 0.15 110.4) |
| XYZ | xyz(33.7688, 40.7057, 7.9972) |
| Luminance | 0.4071 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.83
Puke
#A5A502
ΔE00 3.62
Snot
#ACBB0D
ΔE00 3.79
Vomit
#A2A415
ΔE00 3.81
Puke Green
#9AAE07
ΔE00 4.45
Olive Yellow
#C2B709
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB127 #2927B1
analogous
#B16E27 #AFB127 #6AB127
triadic
#AFB127 #27AFB1 #B127AF
tetradic
#AFB127 #27B16E #2927B1 #B1276A
square
#AFB127 #27B16E #2927B1 #B1276A
split-complementary
#AFB127 #276AB1 #6E27B1
monochromatic
#4C4D11 #7D7F1C #AFB127 #D3D540 #DEE072
Accessibility & contrast
On white
2.30
#AFB127 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.14
#AFB127 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB127
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB127 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB127 | 1.00 | 2.30 | 9.14 | 9.14 |
| #FFFFFF | 2.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#C1AD33
Tritanopia (blue-blind)
#BCA598
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #afb127; /* rgb */ color: rgb(175, 177, 39); /* oklch */ color: oklch(73.5% 0.150 110.4);
Tailwind
colors: {
custom: {
50: '#cbc86e',
500: '#afb127',
950: '#000000',
},
}SCSS
$custom: #afb127; $custom-light: #cbc86e; $custom-dark: #000000;
JSON
{
"hex": "#afb127",
"rgb": {
"r": 175,
"g": 177,
"b": 39
},
"hsl": {
"h": 60.87,
"s": 63.889,
"l": 42.353
},
"oklch": {
"l": 0.73548,
"c": 0.14987,
"h": 110.4
},
"luminance": 0.40705
}Semantic roles & 50–950 ramp
primary
#AFB127
secondary
#6E6DC7
accent
#41E743
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B