#AFB842#AFB842
#AFB842 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.3% C 0.140 H 113.4°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB842 |
|---|---|
| RGB | rgb(175, 184, 66) |
| HSL | hsl(65, 47%, 49%) |
| HSV | hsv(65, 64%, 72%) |
| CMYK | cmyk(4.9%, 0%, 64.1%, 27.8%) |
| CIE-LAB | lab(72.09, -18.58, 56.74) |
| CIE-LCH | lch(72.09, 59.70, 108.13°) |
| OKLab | oklab(75.3% -0.0558 0.1287) |
| OKLCH | oklch(75.3% 0.14 113.4) |
| XYZ | xyz(35.8040, 43.7890, 11.7192) |
| Luminance | 0.4379 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 3.96
Mustard Green
#A8B504
ΔE00 3.97
Sick Green
#9DB92C
ΔE00 4.22
Booger
#9BB53C
ΔE00 4.22
Pea
#A4BF20
ΔE00 4.52
Puke Green
#9AAE07
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB842 #4B42B8
analogous
#B88642 #AFB842 #74B842
triadic
#AFB842 #42AFB8 #B842AF
tetradic
#AFB842 #42B886 #4B42B8 #B84274
square
#AFB842 #42B886 #4B42B8 #B84274
split-complementary
#AFB842 #4274B8 #8642B8
monochromatic
#595E22 #848B32 #AFB842 #C3CB6D #D6DB9A
Accessibility & contrast
On white
2.15
#AFB842 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.76
#AFB842 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB842
9.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB842 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB842 | 1.00 | 2.15 | 9.76 | 9.76 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#C5B24A
Tritanopia (blue-blind)
#BAAEA0
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #afb842; /* rgb */ color: rgb(175, 184, 66); /* oklch */ color: oklch(75.3% 0.140 113.4);
Tailwind
colors: {
custom: {
50: '#cacd7c',
500: '#afb842',
950: '#000000',
},
}SCSS
$custom: #afb842; $custom-light: #cacd7c; $custom-dark: #000000;
JSON
{
"hex": "#afb842",
"rgb": {
"r": 175,
"g": 184,
"b": 66
},
"hsl": {
"h": 64.576,
"s": 47.2,
"l": 49.02
},
"oklch": {
"l": 0.75297,
"c": 0.14028,
"h": 113.4
},
"luminance": 0.43788
}Semantic roles & 50–950 ramp
primary
#AFB842
secondary
#938FC7
accent
#51D75B
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C