#997D27#997D27

#997D27 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 60.1% C 0.107 H 90.2°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#997D27
RGBrgb(153, 125, 39)
HSLhsl(45, 59%, 38%)
HSVhsv(45, 75%, 60%)
CMYKcmyk(0%, 18.3%, 74.5%, 40%)
CIE-LABlab(53.59, 1.55, 48.41)
CIE-LCHlch(53.59, 48.44, 88.17°)
OKLaboklab(60.05% -0.0004 0.1072)
OKLCHoklch(60.05% 0.107 90.2)
XYZxyz(20.8379, 21.5873, 4.9883)
Luminance0.2159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997D27 #274399
analogous
#994427 #997D27 #7C9927
triadic
#997D27 #27997D #7D2799
tetradic
#997D27 #279944 #274399 #99277C
square
#997D27 #279944 #274399 #99277C
split-complementary
#997D27 #277C99 #442799
monochromatic
#372D0E #68551B #997D27 #CAA533 #D7BB63

Accessibility & contrast

On white

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

On black

5.32
#997D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997D27
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997D27#FFFFFF#000000##000000
##997D271.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B1A
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#A6726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #997d27;
/* rgb */ color: rgb(153, 125, 39);
/* oklch */ color: oklch(60.1% 0.107 90.2);
Tailwind
colors: {
  custom: {
    50: '#bba267',
    500: '#997d27',
    950: '#000000',
  },
}
SCSS
$custom: #997d27;
$custom-light: #bba267;
$custom-dark: #000000;
JSON
{
  "hex": "#997d27",
  "rgb": {
    "r": 153,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 45.263,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.60051,
    "c": 0.10719,
    "h": 90.2
  },
  "luminance": 0.21586
}

Semantic roles & 50–950 ramp

primary
#997D27
secondary
#5F76BD
accent
#6CE345
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #997D27

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

Preview Lab → · Contrast checker → · Palette generator →

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