#97981F#97981F
#97981F is a light, vivid yellow. Relative luminance 0.291; OKLCH L 65.8% C 0.134 H 110.1°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).
Color values
| HEX | #97981F |
|---|---|
| RGB | rgb(151, 152, 31) |
| HSL | hsl(60, 66%, 36%) |
| HSV | hsv(60, 80%, 60%) |
| CMYK | cmyk(0.7%, 0%, 79.6%, 40.4%) |
| CIE-LAB | lab(60.90, -14.39, 58.02) |
| CIE-LCH | lch(60.90, 59.78, 103.93°) |
| OKLab | oklab(65.8% -0.0461 0.1262) |
| OKLCH | oklch(65.8% 0.134 110.1) |
| XYZ | xyz(24.2390, 29.1354, 5.6429) |
| Luminance | 0.2913 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 1.99
Baby Poop Green
#8F9805
ΔE00 2.28
Baby Shit Green
#889717
ΔE00 3.73
Vomit
#A2A415
ΔE00 4.02
Puke
#A5A502
ΔE00 4.80
Pea Soup Green
#94A617
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#97981F #201F98
analogous
#985C1F #97981F #5A981F
triadic
#97981F #1F9798 #981F97
tetradic
#97981F #1F985C #201F98 #981F5A
square
#97981F #1F985C #201F98 #981F5A
split-complementary
#97981F #1F5A98 #5C1F98
monochromatic
#32320A #646515 #97981F #C9CB29 #DBDC55
Accessibility & contrast
On white
3.08
#97981F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.83
#97981F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #97981F
6.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##97981F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##97981F | 1.00 | 3.08 | 6.83 | 6.83 |
| #FFFFFF | 3.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A6952A
Tritanopia (blue-blind)
#A28E82
Achromatopsia (no color)
#939393
Design tokens & code
CSS
--color: #97981f; /* rgb */ color: rgb(151, 152, 31); /* oklch */ color: oklch(65.8% 0.134 110.1);
Tailwind
colors: {
custom: {
50: '#b9b666',
500: '#97981f',
950: '#000000',
},
}SCSS
$custom: #97981f; $custom-light: #b9b666; $custom-dark: #000000;
JSON
{
"hex": "#97981f",
"rgb": {
"r": 151,
"g": 152,
"b": 31
},
"hsl": {
"h": 60.496,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.65801,
"c": 0.13432,
"h": 110.1
},
"luminance": 0.29135
}Semantic roles & 50–950 ramp
primary
#97981F
secondary
#5453C0
accent
#3FE940
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A