#997F28#997F28
#997F28 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.108 H 91.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #997F28 |
|---|---|
| RGB | rgb(153, 127, 40) |
| HSL | hsl(46, 59%, 38%) |
| HSV | hsv(46, 74%, 60%) |
| CMYK | cmyk(0%, 17%, 73.9%, 40%) |
| CIE-LAB | lab(54.14, 0.48, 48.54) |
| CIE-LCH | lch(54.14, 48.55, 89.44°) |
| OKLab | oklab(60.49% -0.0034 0.1077) |
| OKLCH | oklch(60.49% 0.108 91.8) |
| XYZ | xyz(21.1104, 22.1055, 5.1619) |
| Luminance | 0.2210 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.51
Yellowish Brown
#9B7A01
ΔE00 3.53
Puke Brown
#947706
ΔE00 3.64
Diarrhea
#9F8303
ΔE00 3.72
Hazel
#8E7618
ΔE00 3.75
Poo
#8F7303
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997F28 #284299
analogous
#994728 #997F28 #7A9928
triadic
#997F28 #28997F #7F2899
tetradic
#997F28 #289947 #284299 #99287A
square
#997F28 #289947 #284299 #99287A
split-complementary
#997F28 #287A99 #472899
monochromatic
#382E0F #68571B #997F28 #CAA735 #D7BC65
Accessibility & contrast
On white
3.87
#997F28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.42
#997F28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997F28
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997F28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997F28 | 1.00 | 3.87 | 5.42 | 5.42 |
| #FFFFFF | 3.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D1B
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#A6746E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #997f28; /* rgb */ color: rgb(153, 127, 40); /* oklch */ color: oklch(60.5% 0.108 91.8);
Tailwind
colors: {
custom: {
50: '#bba368',
500: '#997f28',
950: '#000000',
},
}SCSS
$custom: #997f28; $custom-light: #bba368; $custom-dark: #000000;
JSON
{
"hex": "#997f28",
"rgb": {
"r": 153,
"g": 127,
"b": 40
},
"hsl": {
"h": 46.195,
"s": 58.549,
"l": 37.843
},
"oklch": {
"l": 0.60489,
"c": 0.10772,
"h": 91.8
},
"luminance": 0.22104
}Semantic roles & 50–950 ramp
primary
#997F28
secondary
#6075BD
accent
#6AE246
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A