#948B28#948B28
#948B28 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.6% C 0.117 H 104.1°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #948B28 |
|---|---|
| RGB | rgb(148, 139, 40) |
| HSL | hsl(55, 57%, 37%) |
| HSV | hsv(55, 73%, 58%) |
| CMYK | cmyk(0%, 6.1%, 73%, 42%) |
| CIE-LAB | lab(56.99, -8.42, 51.18) |
| CIE-LCH | lch(56.99, 51.87, 99.35°) |
| OKLab | oklab(62.64% -0.0284 0.1135) |
| OKLCH | oklch(62.64% 0.117 104.1) |
| XYZ | xyz(21.8293, 24.9152, 5.6663) |
| Luminance | 0.2491 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 5.62
Baby Poop Green
#8F9805
ΔE00 6.40
Pea Soup
#929901
ΔE00 6.41
Diarrhea
#9F8303
ΔE00 6.43
Baby Poop
#937C00
ΔE00 6.56
Baby Poo
#AB9004
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#948B28 #283194
analogous
#945528 #948B28 #679428
triadic
#948B28 #28948B #8B2894
tetradic
#948B28 #289455 #283194 #942867
square
#948B28 #289455 #283194 #942867
split-complementary
#948B28 #286794 #552894
monochromatic
#34310E #645E1B #948B28 #C4B835 #D5CB62
Accessibility & contrast
On white
3.51
#948B28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.98
#948B28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #948B28
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##948B28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##948B28 | 1.00 | 3.51 | 5.98 | 5.98 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988617
Deuteranopia (green-blind)
#9B8B2F
Tritanopia (blue-blind)
#9F8178
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #948b28; /* rgb */ color: rgb(148, 139, 40); /* oklch */ color: oklch(62.6% 0.117 104.1);
Tailwind
colors: {
custom: {
50: '#b7ac69',
500: '#948b28',
950: '#000000',
},
}SCSS
$custom: #948b28; $custom-light: #b7ac69; $custom-dark: #000000;
JSON
{
"hex": "#948b28",
"rgb": {
"r": 148,
"g": 139,
"b": 40
},
"hsl": {
"h": 55,
"s": 57.447,
"l": 36.863
},
"oklch": {
"l": 0.62636,
"c": 0.11695,
"h": 104.1
},
"luminance": 0.24914
}Semantic roles & 50–950 ramp
primary
#948B28
secondary
#5E65BA
accent
#54E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A