#997D21#997D21

#997D21 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.111 H 91.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#997D21
RGBrgb(153, 125, 33)
HSLhsl(46, 65%, 36%)
HSVhsv(46, 78%, 60%)
CMYKcmyk(0%, 18.3%, 78.4%, 40%)
CIE-LABlab(53.55, 1.28, 50.73)
CIE-LCHlch(53.55, 50.75, 88.56°)
OKLaboklab(60.01% -0.0019 0.1109)
OKLCHoklch(60.01% 0.111 91)
XYZxyz(20.7462, 21.5506, 4.5055)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997D21 #213D99
analogous
#994121 #997D21 #799921
triadic
#997D21 #21997D #7D2199
tetradic
#997D21 #219941 #213D99 #992179
square
#997D21 #219941 #213D99 #992179
split-complementary
#997D21 #217999 #412199
monochromatic
#342B0B #675416 #997D21 #CBA62C #DBBD59

Accessibility & contrast

On white

3.95
#997D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#997D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997D21
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997D21#FFFFFF#000000##000000
##997D211.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0F
Deuteranopia (green-blind)
#938326
Tritanopia (blue-blind)
#A6726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #997d21;
/* rgb */ color: rgb(153, 125, 33);
/* oklch */ color: oklch(60.0% 0.111 91.0);
Tailwind
colors: {
  custom: {
    50: '#bba264',
    500: '#997d21',
    950: '#000000',
  },
}
SCSS
$custom: #997d21;
$custom-light: #bba264;
$custom-dark: #000000;
JSON
{
  "hex": "#997d21",
  "rgb": {
    "r": 153,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 46,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60007,
    "c": 0.11088,
    "h": 91
  },
  "luminance": 0.21549
}

Semantic roles & 50–950 ramp

primary
#997D21
secondary
#566FBF
accent
#67E840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #997D21

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#997D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva