#948E1F#948E1F
#948E1F is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.125 H 106.2°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #948E1F |
|---|---|
| RGB | rgb(148, 142, 31) |
| HSL | hsl(57, 65%, 35%) |
| HSV | hsv(57, 79%, 58%) |
| CMYK | cmyk(0%, 4.1%, 79.1%, 42%) |
| CIE-LAB | lab(57.79, -10.45, 55.14) |
| CIE-LCH | lch(57.79, 56.12, 100.73°) |
| OKLab | oklab(63.26% -0.035 0.1201) |
| OKLCH | oklch(63.26% 0.125 106.2) |
| XYZ | xyz(22.1340, 25.7417, 5.0988) |
| Luminance | 0.2574 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 4.82
Baby Poop Green
#8F9805
ΔE00 4.86
Baby Shit Green
#889717
ΔE00 5.76
Olive
#808000
ΔE00 5.80
Baby Poo
#AB9004
ΔE00 6.82
Diarrhea
#9F8303
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#948E1F #1F2594
analogous
#94531F #948E1F #60941F
triadic
#948E1F #1F948E #8E1F94
tetradic
#948E1F #1F9453 #1F2594 #941F60
square
#948E1F #1F9453 #1F2594 #941F60
split-complementary
#948E1F #1F6094 #531F94
monochromatic
#2F2D0A #615D14 #948E1F #C7BF2A #DBD453
Accessibility & contrast
On white
3.42
#948E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.15
#948E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #948E1F
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##948E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##948E1F | 1.00 | 3.42 | 6.15 | 6.15 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8801
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#9F8479
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #948e1f; /* rgb */ color: rgb(148, 142, 31); /* oklch */ color: oklch(63.3% 0.125 106.2);
Tailwind
colors: {
custom: {
50: '#b7ae65',
500: '#948e1f',
950: '#000000',
},
}SCSS
$custom: #948e1f; $custom-light: #b7ae65; $custom-dark: #000000;
JSON
{
"hex": "#948e1f",
"rgb": {
"r": 148,
"g": 142,
"b": 31
},
"hsl": {
"h": 56.923,
"s": 65.363,
"l": 35.098
},
"oklch": {
"l": 0.63255,
"c": 0.12508,
"h": 106.2
},
"luminance": 0.25741
}Semantic roles & 50–950 ramp
primary
#948E1F
secondary
#5156BE
accent
#48E83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A