#AFB540#AFB540
#AFB540 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.6% C 0.138 H 112.1°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB540 |
|---|---|
| RGB | rgb(175, 181, 64) |
| HSL | hsl(63, 48%, 48%) |
| HSV | hsv(63, 65%, 71%) |
| CMYK | cmyk(3.3%, 0%, 64.6%, 29%) |
| CIE-LAB | lab(71.24, -17.20, 56.67) |
| CIE-LCH | lch(71.24, 59.23, 106.88°) |
| OKLab | oklab(74.61% -0.0521 0.1283) |
| OKLCH | oklch(74.61% 0.138 112.1) |
| XYZ | xyz(35.1295, 42.5327, 11.2086) |
| Luminance | 0.4253 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.92
Snot
#ACBB0D
ΔE00 4.24
Booger
#9BB53C
ΔE00 4.71
Sick Green
#9DB92C
ΔE00 4.84
Puke Green
#9AAE07
ΔE00 4.90
Pea
#A4BF20
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB540 #4640B5
analogous
#B58040 #AFB540 #74B540
triadic
#AFB540 #40AFB5 #B540AF
tetradic
#AFB540 #40B580 #4640B5 #B54074
square
#AFB540 #40B580 #4640B5 #B54074
split-complementary
#AFB540 #4074B5 #8040B5
monochromatic
#585B20 #838830 #AFB540 #C5CA68 #D6DA96
Accessibility & contrast
On white
2.21
#AFB540 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.51
#AFB540 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB540
9.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB540 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB540 | 1.00 | 2.21 | 9.51 | 9.51 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD30
Deuteranopia (green-blind)
#C3B048
Tritanopia (blue-blind)
#BAAA9D
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb540; /* rgb */ color: rgb(175, 181, 64); /* oklch */ color: oklch(74.6% 0.138 112.1);
Tailwind
colors: {
custom: {
50: '#cacb7b',
500: '#afb540',
950: '#000000',
},
}SCSS
$custom: #afb540; $custom-light: #cacb7b; $custom-dark: #000000;
JSON
{
"hex": "#afb540",
"rgb": {
"r": 175,
"g": 181,
"b": 64
},
"hsl": {
"h": 63.077,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.74612,
"c": 0.13846,
"h": 112.1
},
"luminance": 0.42532
}Semantic roles & 50–950 ramp
primary
#AFB540
secondary
#8E8BC5
accent
#50D757
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C