#978C1B#978C1B
#978C1B is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.125 H 103.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #978C1B |
|---|---|
| RGB | rgb(151, 140, 27) |
| HSL | hsl(55, 70%, 35%) |
| HSV | hsv(55, 82%, 59%) |
| CMYK | cmyk(0%, 7.3%, 82.1%, 40.8%) |
| CIE-LAB | lab(57.48, -8.15, 56.20) |
| CIE-LCH | lch(57.48, 56.79, 98.25°) |
| OKLab | oklab(63.07% -0.029 0.1215) |
| OKLCH | oklch(63.07% 0.125 103.4) |
| XYZ | xyz(22.3395, 25.4156, 4.7657) |
| Luminance | 0.2541 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.55
Diarrhea
#9F8303
ΔE00 5.66
Pea Soup
#929901
ΔE00 6.03
Baby Shit Brown
#AD900D
ΔE00 6.03
Olive
#808000
ΔE00 6.06
Dark Mustard
#A88905
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C1B #1B2697
analogous
#974E1B #978C1B #64971B
triadic
#978C1B #1B978C #8C1B97
tetradic
#978C1B #1B974E #1B2697 #971B64
square
#978C1B #1B974E #1B2697 #971B64
split-complementary
#978C1B #1B6497 #4E1B97
monochromatic
#2F2C08 #635C12 #978C1B #CBBC24 #DFD24D
Accessibility & contrast
On white
3.45
#978C1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.08
#978C1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C1B
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C1B | 1.00 | 3.45 | 6.08 | 6.08 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9D8C25
Tritanopia (blue-blind)
#A38277
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c1b; /* rgb */ color: rgb(151, 140, 27); /* oklch */ color: oklch(63.1% 0.125 103.4);
Tailwind
colors: {
custom: {
50: '#b9ad63',
500: '#978c1b',
950: '#000000',
},
}SCSS
$custom: #978c1b; $custom-light: #b9ad63; $custom-dark: #000000;
JSON
{
"hex": "#978c1b",
"rgb": {
"r": 151,
"g": 140,
"b": 27
},
"hsl": {
"h": 54.677,
"s": 69.663,
"l": 34.902
},
"oklch": {
"l": 0.63065,
"c": 0.12488,
"h": 103.4
},
"luminance": 0.25415
}Semantic roles & 50–950 ramp
primary
#978C1B
secondary
#4C57C1
accent
#4BEC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A