#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
RGBrgb(153, 127, 40)
HSLhsl(46, 59%, 38%)
HSVhsv(46, 74%, 60%)
CMYKcmyk(0%, 17%, 73.9%, 40%)
CIE-LABlab(54.14, 0.48, 48.54)
CIE-LCHlch(54.14, 48.55, 89.44°)
OKLaboklab(60.49% -0.0034 0.1077)
OKLCHoklch(60.49% 0.108 91.8)
XYZxyz(21.1104, 22.1055, 5.1619)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

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
##997F281.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.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

Preview Lab

Preview with #997F28

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

Preview Lab → · Contrast checker → · Palette generator →

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