#948D21#948D21
#948D21 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.0% C 0.123 H 105.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #948D21 |
|---|---|
| RGB | rgb(148, 141, 33) |
| HSL | hsl(56, 64%, 35%) |
| HSV | hsv(56, 78%, 58%) |
| CMYK | cmyk(0%, 4.7%, 77.7%, 42%) |
| CIE-LAB | lab(57.52, -9.83, 54.23) |
| CIE-LCH | lch(57.52, 55.11, 100.27°) |
| OKLab | oklab(63.04% -0.0331 0.1186) |
| OKLCH | oklch(63.04% 0.123 105.6) |
| XYZ | xyz(22.0131, 25.4563, 5.1926) |
| Luminance | 0.2545 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.29
Baby Poop Green
#8F9805
ΔE00 5.31
Olive
#808000
ΔE00 5.66
Baby Shit Green
#889717
ΔE00 6.14
Baby Poo
#AB9004
ΔE00 6.73
Diarrhea
#9F8303
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#948D21 #212894
analogous
#945321 #948D21 #619421
triadic
#948D21 #21948D #8D2194
tetradic
#948D21 #219453 #212894 #942161
square
#948D21 #219453 #212894 #942161
split-complementary
#948D21 #216194 #532194
monochromatic
#302E0B #625D16 #948D21 #C6BD2C #D9D156
Accessibility & contrast
On white
3.45
#948D21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#948D21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #948D21
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##948D21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##948D21 | 1.00 | 3.45 | 6.09 | 6.09 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8807
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #948d21; /* rgb */ color: rgb(148, 141, 33); /* oklch */ color: oklch(63.0% 0.123 105.6);
Tailwind
colors: {
custom: {
50: '#b7ae66',
500: '#948d21',
950: '#000000',
},
}SCSS
$custom: #948d21; $custom-light: #b7ae66; $custom-dark: #000000;
JSON
{
"hex": "#948d21",
"rgb": {
"r": 148,
"g": 141,
"b": 33
},
"hsl": {
"h": 56.348,
"s": 63.536,
"l": 35.49
},
"oklch": {
"l": 0.6304,
"c": 0.12307,
"h": 105.6
},
"luminance": 0.25455
}Semantic roles & 50–950 ramp
primary
#948D21
secondary
#545ABD
accent
#4BE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A