#AFB028#AFB028
#AFB028 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.148 H 110.0°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB028 |
|---|---|
| RGB | rgb(175, 176, 40) |
| HSL | hsl(60, 63%, 42%) |
| HSV | hsv(60, 77%, 69%) |
| CMYK | cmyk(0.6%, 0%, 77.3%, 31%) |
| CIE-LAB | lab(69.70, -15.88, 63.91) |
| CIE-LCH | lch(69.70, 65.86, 103.95°) |
| OKLab | oklab(73.33% -0.0508 0.1394) |
| OKLCH | oklch(73.33% 0.148 110) |
| XYZ | xyz(33.5888, 40.3188, 8.0200) |
| Luminance | 0.4032 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.14
Puke
#A5A502
ΔE00 3.41
Vomit
#A2A415
ΔE00 3.60
Snot
#ACBB0D
ΔE00 4.14
Puke Green
#9AAE07
ΔE00 4.60
Olive Yellow
#C2B709
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB028 #2928B0
analogous
#B06D28 #AFB028 #6BB028
triadic
#AFB028 #28AFB0 #B028AF
tetradic
#AFB028 #28B06D #2928B0 #B0286B
square
#AFB028 #28B06D #2928B0 #B0286B
split-complementary
#AFB028 #286BB0 #6D28B0
monochromatic
#4C4C11 #7D7E1D #AFB028 #D3D441 #DEDF73
Accessibility & contrast
On white
2.32
#AFB028 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.06
#AFB028 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB028
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB028 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB028 | 1.00 | 2.32 | 9.06 | 9.06 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#C0AC34
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #afb028; /* rgb */ color: rgb(175, 176, 40); /* oklch */ color: oklch(73.3% 0.148 110.0);
Tailwind
colors: {
custom: {
50: '#cbc76e',
500: '#afb028',
950: '#000000',
},
}SCSS
$custom: #afb028; $custom-light: #cbc76e; $custom-dark: #000000;
JSON
{
"hex": "#afb028",
"rgb": {
"r": 175,
"g": 176,
"b": 40
},
"hsl": {
"h": 60.441,
"s": 62.963,
"l": 42.353
},
"oklch": {
"l": 0.73332,
"c": 0.14839,
"h": 110
},
"luminance": 0.40318
}Semantic roles & 50–950 ramp
primary
#AFB028
secondary
#6E6DC6
accent
#42E643
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B