#978226#978226
#978226 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.9% C 0.111 H 95.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #978226 |
|---|---|
| RGB | rgb(151, 130, 38) |
| HSL | hsl(49, 60%, 37%) |
| HSV | hsv(49, 75%, 59%) |
| CMYK | cmyk(0%, 13.9%, 74.8%, 40.8%) |
| CIE-LAB | lab(54.75, -2.21, 49.88) |
| CIE-LCH | lch(54.75, 49.93, 92.54°) |
| OKLab | oklab(60.92% -0.0112 0.1102) |
| OKLCH | oklch(60.92% 0.111 95.8) |
| XYZ | xyz(21.0961, 22.6857, 5.1009) |
| Luminance | 0.2268 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.22
Diarrhea
#9F8303
ΔE00 3.48
Hazel
#8E7618
ΔE00 4.46
Puke Brown
#947706
ΔE00 4.62
Yellowish Brown
#9B7A01
ΔE00 4.68
Dark Mustard
#A88905
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978226 #263B97
analogous
#974A26 #978226 #739726
triadic
#978226 #269782 #822697
tetradic
#978226 #26974A #263B97 #972673
square
#978226 #26974A #263B97 #972673
split-complementary
#978226 #267397 #4A2697
monochromatic
#352E0D #66581A #978226 #C8AC32 #D7C160
Accessibility & contrast
On white
3.79
#978226 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#978226 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978226
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978226 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978226 | 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)
#907F17
Deuteranopia (green-blind)
#95862C
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #978226; /* rgb */ color: rgb(151, 130, 38); /* oklch */ color: oklch(60.9% 0.111 95.8);
Tailwind
colors: {
custom: {
50: '#b9a667',
500: '#978226',
950: '#000000',
},
}SCSS
$custom: #978226; $custom-light: #b9a667; $custom-dark: #000000;
JSON
{
"hex": "#978226",
"rgb": {
"r": 151,
"g": 130,
"b": 38
},
"hsl": {
"h": 48.85,
"s": 59.788,
"l": 37.059
},
"oklch": {
"l": 0.60918,
"c": 0.11075,
"h": 95.8
},
"luminance": 0.22685
}Semantic roles & 50–950 ramp
primary
#978226
secondary
#5C6EBC
accent
#62E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A