#AFB248#AFB248
#AFB248 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.129 H 110.7°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB248 |
|---|---|
| RGB | rgb(175, 178, 72) |
| HSL | hsl(62, 42%, 49%) |
| HSV | hsv(62, 60%, 70%) |
| CMYK | cmyk(1.7%, 0%, 59.6%, 30.2%) |
| CIE-LAB | lab(70.47, -15.13, 52.42) |
| CIE-LCH | lch(70.47, 54.56, 106.09°) |
| OKLab | oklab(74.02% -0.0454 0.1204) |
| OKLCH | oklch(74.02% 0.129 110.7) |
| XYZ | xyz(34.7702, 41.4235, 12.2935) |
| Luminance | 0.4142 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 5.22
Booger
#9BB53C
ΔE00 5.30
Darkkhaki
#BDB76B
ΔE00 5.39
Vomit
#A2A415
ΔE00 5.44
Snot
#ACBB0D
ΔE00 5.71
Puke Green
#9AAE07
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB248 #4B48B2
analogous
#B28048 #AFB248 #7AB248
triadic
#AFB248 #48AFB2 #B248AF
tetradic
#AFB248 #48B280 #4B48B2 #B2487A
square
#AFB248 #48B280 #4B48B2 #B2487A
split-complementary
#AFB248 #487AB2 #8048B2
monochromatic
#595B25 #848636 #AFB248 #C3C671 #D6D79D
Accessibility & contrast
On white
2.26
#AFB248 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.28
#AFB248 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB248
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB248 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB248 | 1.00 | 2.26 | 9.28 | 9.28 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFAB3C
Deuteranopia (green-blind)
#C0AE4E
Tritanopia (blue-blind)
#BAA89B
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afb248; /* rgb */ color: rgb(175, 178, 72); /* oklch */ color: oklch(74.0% 0.129 110.7);
Tailwind
colors: {
custom: {
50: '#c9c87f',
500: '#afb248',
950: '#000000',
},
}SCSS
$custom: #afb248; $custom-light: #c9c87f; $custom-dark: #000000;
JSON
{
"hex": "#afb248",
"rgb": {
"r": 175,
"g": 178,
"b": 72
},
"hsl": {
"h": 61.698,
"s": 42.4,
"l": 49.02
},
"oklch": {
"l": 0.74022,
"c": 0.1287,
"h": 110.7
},
"luminance": 0.41423
}Semantic roles & 50–950 ramp
primary
#AFB248
secondary
#9392C4
accent
#56D259
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C