#978227#978227
#978227 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.9% C 0.110 H 95.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #978227 |
|---|---|
| RGB | rgb(151, 130, 39) |
| HSL | hsl(49, 59%, 37%) |
| HSV | hsv(49, 74%, 59%) |
| CMYK | cmyk(0%, 13.9%, 74.2%, 40.8%) |
| CIE-LAB | lab(54.75, -2.16, 49.49) |
| CIE-LCH | lch(54.75, 49.53, 92.50°) |
| OKLab | oklab(60.93% -0.0109 0.1096) |
| OKLCH | oklch(60.93% 0.11 95.7) |
| XYZ | xyz(21.1124, 22.6922, 5.1871) |
| Luminance | 0.2269 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.31
Diarrhea
#9F8303
ΔE00 3.57
Hazel
#8E7618
ΔE00 4.46
Puke Brown
#947706
ΔE00 4.65
Yellowish Brown
#9B7A01
ΔE00 4.72
Dark Mustard
#A88905
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978227 #273C97
analogous
#974A27 #978227 #749727
triadic
#978227 #279782 #822797
tetradic
#978227 #27974A #273C97 #972774
square
#978227 #27974A #273C97 #972774
split-complementary
#978227 #277497 #4A2797
monochromatic
#362E0E #66581A #978227 #C8AC34 #D6C162
Accessibility & contrast
On white
3.79
#978227 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#978227 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978227
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978227 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978227 | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F18
Deuteranopia (green-blind)
#95862C
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #978227; /* rgb */ color: rgb(151, 130, 39); /* oklch */ color: oklch(60.9% 0.110 95.7);
Tailwind
colors: {
custom: {
50: '#b9a668',
500: '#978227',
950: '#000000',
},
}SCSS
$custom: #978227; $custom-light: #b9a668; $custom-dark: #000000;
JSON
{
"hex": "#978227",
"rgb": {
"r": 151,
"g": 130,
"b": 39
},
"hsl": {
"h": 48.75,
"s": 58.947,
"l": 37.255
},
"oklch": {
"l": 0.60925,
"c": 0.11009,
"h": 95.7
},
"luminance": 0.22691
}Semantic roles & 50–950 ramp
primary
#978227
secondary
#5E6FBC
accent
#63E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A