#AFB548#AFB548
#AFB548 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.132 H 112.1°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB548 |
|---|---|
| RGB | rgb(175, 181, 72) |
| HSL | hsl(63, 43%, 50%) |
| HSV | hsv(63, 60%, 71%) |
| CMYK | cmyk(3.3%, 0%, 60.2%, 29%) |
| CIE-LAB | lab(71.30, -16.65, 53.33) |
| CIE-LCH | lch(71.30, 55.87, 107.34°) |
| OKLab | oklab(74.69% -0.0498 0.1223) |
| OKLCH | oklch(74.69% 0.132 112.1) |
| XYZ | xyz(35.3737, 42.6303, 12.4947) |
| Luminance | 0.4263 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Booger
#9BB53C
ΔE00 4.64
Mustard Green
#A8B504
ΔE00 4.84
Snot
#ACBB0D
ΔE00 5.10
Sick Green
#9DB92C
ΔE00 5.13
Puke Green
#9AAE07
ΔE00 5.50
Light Olive Green
#A4BE5C
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB548 #4E48B5
analogous
#B58548 #AFB548 #78B548
triadic
#AFB548 #48AFB5 #B548AF
tetradic
#AFB548 #48B585 #4E48B5 #B54878
square
#AFB548 #48B585 #4E48B5 #B54878
split-complementary
#AFB548 #4878B5 #8548B5
monochromatic
#5A5D25 #858937 #AFB548 #C3C773 #D6D99F
Accessibility & contrast
On white
2.20
#AFB548 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.53
#AFB548 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB548
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB548 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB548 | 1.00 | 2.20 | 9.53 | 9.53 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD3B
Deuteranopia (green-blind)
#C2B04F
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #afb548; /* rgb */ color: rgb(175, 181, 72); /* oklch */ color: oklch(74.7% 0.132 112.1);
Tailwind
colors: {
custom: {
50: '#c9cb80',
500: '#afb548',
950: '#000000',
},
}SCSS
$custom: #afb548; $custom-light: #c9cb80; $custom-dark: #000000;
JSON
{
"hex": "#afb548",
"rgb": {
"r": 175,
"g": 181,
"b": 72
},
"hsl": {
"h": 63.303,
"s": 43.083,
"l": 49.608
},
"oklch": {
"l": 0.74686,
"c": 0.13208,
"h": 112.1
},
"luminance": 0.4263
}Semantic roles & 50–950 ramp
primary
#AFB548
secondary
#9693C5
accent
#55D35C
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C