#978522#978522
#978522 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.5% C 0.115 H 98.4°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #978522 |
|---|---|
| RGB | rgb(151, 133, 34) |
| HSL | hsl(51, 63%, 36%) |
| HSV | hsv(51, 77%, 59%) |
| CMYK | cmyk(0%, 11.9%, 77.5%, 40.8%) |
| CIE-LAB | lab(55.55, -4.06, 52.16) |
| CIE-LCH | lch(55.55, 52.32, 94.45°) |
| OKLab | oklab(61.55% -0.0168 0.1142) |
| OKLCH | oklch(61.55% 0.115 98.4) |
| XYZ | xyz(21.4398, 23.4710, 4.9141) |
| Luminance | 0.2347 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.60
Baby Poop
#937C00
ΔE00 3.73
Dark Mustard
#A88905
ΔE00 5.01
Hazel
#8E7618
ΔE00 5.63
Yellowish Brown
#9B7A01
ΔE00 5.71
Puke Brown
#947706
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978522 #223497
analogous
#974B22 #978522 #6F9722
triadic
#978522 #229785 #852297
tetradic
#978522 #22974B #223497 #97226F
square
#978522 #22974B #223497 #97226F
split-complementary
#978522 #226F97 #4B2297
monochromatic
#332D0C #655917 #978522 #C9B12D #DAC65A
Accessibility & contrast
On white
3.69
#978522 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.69
#978522 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978522
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978522 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978522 | 1.00 | 3.69 | 5.69 | 5.69 |
| #FFFFFF | 3.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#93820E
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#A37B72
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #978522; /* rgb */ color: rgb(151, 133, 34); /* oklch */ color: oklch(61.5% 0.115 98.4);
Tailwind
colors: {
custom: {
50: '#b9a865',
500: '#978522',
950: '#000000',
},
}SCSS
$custom: #978522; $custom-light: #b9a865; $custom-dark: #000000;
JSON
{
"hex": "#978522",
"rgb": {
"r": 151,
"g": 133,
"b": 34
},
"hsl": {
"h": 50.769,
"s": 63.243,
"l": 36.275
},
"oklch": {
"l": 0.61549,
"c": 0.11546,
"h": 98.4
},
"luminance": 0.2347
}Semantic roles & 50–950 ramp
primary
#978522
secondary
#5767BE
accent
#5BE642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A