#AFB22B#AFB22B
#AFB22B is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.8% C 0.149 H 110.9°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB22B |
|---|---|
| RGB | rgb(175, 178, 43) |
| HSL | hsl(61, 61%, 43%) |
| HSV | hsv(61, 76%, 70%) |
| CMYK | cmyk(1.7%, 0%, 75.8%, 30.2%) |
| CIE-LAB | lab(70.27, -16.78, 63.49) |
| CIE-LCH | lch(70.27, 65.67, 104.80°) |
| OKLab | oklab(73.79% -0.053 0.1391) |
| OKLCH | oklch(73.79% 0.149 110.9) |
| XYZ | xyz(34.0368, 41.1301, 8.4310) |
| Luminance | 0.4113 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.75
Snot
#ACBB0D
ΔE00 3.60
Puke
#A5A502
ΔE00 3.98
Vomit
#A2A415
ΔE00 4.08
Puke Green
#9AAE07
ΔE00 4.36
Puke Yellow
#C2BE0E
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB22B #2E2BB2
analogous
#B2712B #AFB22B #6BB22B
triadic
#AFB22B #2BAFB2 #B22BAF
tetradic
#AFB22B #2BB271 #2E2BB2 #B22B6B
square
#AFB22B #2BB271 #2E2BB2 #B22B6B
split-complementary
#AFB22B #2B6BB2 #712BB2
monochromatic
#4E4F13 #7F811F #AFB22B #D0D348 #DCDF79
Accessibility & contrast
On white
2.28
#AFB22B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.23
#AFB22B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB22B
9.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB22B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB22B | 1.00 | 2.28 | 9.23 | 9.23 |
| #FFFFFF | 2.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AA08
Deuteranopia (green-blind)
#C1AE36
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afb22b; /* rgb */ color: rgb(175, 178, 43); /* oklch */ color: oklch(73.8% 0.149 110.9);
Tailwind
colors: {
custom: {
50: '#cbc870',
500: '#afb22b',
950: '#000000',
},
}SCSS
$custom: #afb22b; $custom-light: #cbc870; $custom-dark: #000000;
JSON
{
"hex": "#afb22b",
"rgb": {
"r": 175,
"g": 178,
"b": 43
},
"hsl": {
"h": 61.333,
"s": 61.086,
"l": 43.333
},
"oklch": {
"l": 0.73793,
"c": 0.14884,
"h": 110.9
},
"luminance": 0.41129
}Semantic roles & 50–950 ramp
primary
#AFB22B
secondary
#7472C7
accent
#44E447
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B