#978731#978731
#978731 is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.1% C 0.107 H 98.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #978731 |
|---|---|
| RGB | rgb(151, 135, 49) |
| HSL | hsl(51, 51%, 39%) |
| HSV | hsv(51, 68%, 59%) |
| CMYK | cmyk(0%, 10.6%, 67.5%, 40.8%) |
| CIE-LAB | lab(56.22, -4.37, 46.73) |
| CIE-LCH | lch(56.22, 46.94, 95.35°) |
| OKLab | oklab(62.11% -0.0161 0.1056) |
| OKLCH | oklch(62.11% 0.107 98.7) |
| XYZ | xyz(21.9818, 24.1300, 6.4048) |
| Luminance | 0.2413 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.11
Baby Poop
#937C00
ΔE00 5.28
Dark Khaki
#9B8F55
ΔE00 5.86
Dark Mustard
#A88905
ΔE00 6.11
Hazel
#8E7618
ΔE00 6.46
Baby Poo
#AB9004
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978731 #314197
analogous
#975431 #978731 #749731
triadic
#978731 #319787 #873197
tetradic
#978731 #319754 #314197 #973174
square
#978731 #319754 #314197 #973174
split-complementary
#978731 #317497 #543197
monochromatic
#3B3413 #695E22 #978731 #C2AE43 #D1C271
Accessibility & contrast
On white
3.60
#978731 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.83
#978731 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978731
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978731 | 1.00 | 3.60 | 5.83 | 5.83 |
| #FFFFFF | 3.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#948426
Deuteranopia (green-blind)
#988936
Tritanopia (blue-blind)
#A37D75
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #978731; /* rgb */ color: rgb(151, 135, 49); /* oklch */ color: oklch(62.1% 0.107 98.7);
Tailwind
colors: {
custom: {
50: '#b9a96e',
500: '#978731',
950: '#000000',
},
}SCSS
$custom: #978731; $custom-light: #b9a96e; $custom-dark: #000000;
JSON
{
"hex": "#978731",
"rgb": {
"r": 151,
"g": 135,
"b": 49
},
"hsl": {
"h": 50.588,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.62109,
"c": 0.10677,
"h": 98.7
},
"luminance": 0.24129
}Semantic roles & 50–950 ramp
primary
#978731
secondary
#6B77B9
accent
#63DA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A