#948C28#948C28
#948C28 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.118 H 104.7°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #948C28 |
|---|---|
| RGB | rgb(148, 140, 40) |
| HSL | hsl(56, 57%, 37%) |
| HSV | hsv(56, 73%, 58%) |
| CMYK | cmyk(0%, 5.4%, 73%, 42%) |
| CIE-LAB | lab(57.28, -8.97, 51.46) |
| CIE-LCH | lch(57.28, 52.23, 99.88°) |
| OKLab | oklab(62.86% -0.0299 0.114) |
| OKLCH | oklch(62.86% 0.118 104.7) |
| XYZ | xyz(21.9747, 25.2061, 5.7148) |
| Luminance | 0.2520 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 5.71
Baby Poop Green
#8F9805
ΔE00 6.00
Pea Soup
#929901
ΔE00 6.02
Baby Shit Green
#889717
ΔE00 6.64
Diarrhea
#9F8303
ΔE00 6.75
Baby Poo
#AB9004
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#948C28 #283094
analogous
#945628 #948C28 #669428
triadic
#948C28 #28948C #8C2894
tetradic
#948C28 #289456 #283094 #942866
square
#948C28 #289456 #283094 #942866
split-complementary
#948C28 #286694 #562894
monochromatic
#34310E #645E1B #948C28 #C4BA35 #D5CC62
Accessibility & contrast
On white
3.48
#948C28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.04
#948C28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #948C28
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##948C28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##948C28 | 1.00 | 3.48 | 6.04 | 6.04 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998717
Deuteranopia (green-blind)
#9B8C2F
Tritanopia (blue-blind)
#9F8278
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #948c28; /* rgb */ color: rgb(148, 140, 40); /* oklch */ color: oklch(62.9% 0.118 104.7);
Tailwind
colors: {
custom: {
50: '#b7ad69',
500: '#948c28',
950: '#000000',
},
}SCSS
$custom: #948c28; $custom-light: #b7ad69; $custom-dark: #000000;
JSON
{
"hex": "#948c28",
"rgb": {
"r": 148,
"g": 140,
"b": 40
},
"hsl": {
"h": 55.556,
"s": 57.447,
"l": 36.863
},
"oklch": {
"l": 0.62861,
"c": 0.11789,
"h": 104.7
},
"luminance": 0.25205
}Semantic roles & 50–950 ramp
primary
#948C28
secondary
#5E64BA
accent
#52E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A