#948D1F#948D1F
#948D1F is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.0% C 0.124 H 105.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #948D1F |
|---|---|
| RGB | rgb(148, 141, 31) |
| HSL | hsl(56, 65%, 35%) |
| HSV | hsv(56, 79%, 58%) |
| CMYK | cmyk(0%, 4.7%, 79.1%, 42%) |
| CIE-LAB | lab(57.51, -9.91, 54.88) |
| CIE-LCH | lch(57.51, 55.77, 100.24°) |
| OKLab | oklab(63.03% -0.0335 0.1196) |
| OKLCH | oklch(63.03% 0.124 105.6) |
| XYZ | xyz(21.9859, 25.4454, 5.0494) |
| Luminance | 0.2545 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.21
Baby Poop Green
#8F9805
ΔE00 5.25
Olive
#808000
ΔE00 5.63
Baby Shit Green
#889717
ΔE00 6.13
Baby Poo
#AB9004
ΔE00 6.67
Diarrhea
#9F8303
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#948D1F #1F2694
analogous
#94521F #948D1F #61941F
triadic
#948D1F #1F948D #8D1F94
tetradic
#948D1F #1F9452 #1F2694 #941F61
square
#948D1F #1F9452 #1F2694 #941F61
split-complementary
#948D1F #1F6194 #521F94
monochromatic
#2F2D0A #615D14 #948D1F #C7BD2A #DBD353
Accessibility & contrast
On white
3.45
#948D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.09
#948D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #948D1F
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##948D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##948D1F | 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)
#9A8801
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #948d1f; /* rgb */ color: rgb(148, 141, 31); /* oklch */ color: oklch(63.0% 0.124 105.6);
Tailwind
colors: {
custom: {
50: '#b7ae65',
500: '#948d1f',
950: '#000000',
},
}SCSS
$custom: #948d1f; $custom-light: #b7ae65; $custom-dark: #000000;
JSON
{
"hex": "#948d1f",
"rgb": {
"r": 148,
"g": 141,
"b": 31
},
"hsl": {
"h": 56.41,
"s": 65.363,
"l": 35.098
},
"oklch": {
"l": 0.63029,
"c": 0.12414,
"h": 105.6
},
"luminance": 0.25445
}Semantic roles & 50–950 ramp
primary
#948D1F
secondary
#5157BE
accent
#4AE83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A