#997F30#997F30

#997F30 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.102 H 90.6°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#997F30
RGBrgb(153, 127, 48)
HSLhsl(45, 52%, 39%)
HSVhsv(45, 69%, 60%)
CMYKcmyk(0%, 17%, 68.6%, 40%)
CIE-LABlab(54.20, 0.92, 45.12)
CIE-LCHlch(54.20, 45.13, 88.83°)
OKLaboklab(60.56% -0.0011 0.1019)
OKLCHoklch(60.56% 0.102 90.6)
XYZxyz(21.2608, 22.1657, 5.9543)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997F30 #304A99
analogous
#994B30 #997F30 #7F9930
triadic
#997F30 #30997F #7F3099
tetradic
#997F30 #30994B #304A99 #99307F
square
#997F30 #30994B #304A99 #99307F
split-complementary
#997F30 #307F99 #4B3099
monochromatic
#3C3213 #6A5821 #997F30 #C4A442 #D2BA71

Accessibility & contrast

On white

3.87
#997F30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#997F30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997F30
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997F30#FFFFFF#000000##000000
##997F301.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D26
Deuteranopia (green-blind)
#938534
Tritanopia (blue-blind)
#A5756E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #997f30;
/* rgb */ color: rgb(153, 127, 48);
/* oklch */ color: oklch(60.6% 0.102 90.6);
Tailwind
colors: {
  custom: {
    50: '#baa36c',
    500: '#997f30',
    950: '#000000',
  },
}
SCSS
$custom: #997f30;
$custom-light: #baa36c;
$custom-dark: #000000;
JSON
{
  "hex": "#997f30",
  "rgb": {
    "r": 153,
    "g": 127,
    "b": 48
  },
  "hsl": {
    "h": 45.143,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.60559,
    "c": 0.10193,
    "h": 90.6
  },
  "luminance": 0.22164
}

Semantic roles & 50–950 ramp

primary
#997F30
secondary
#6B7EBA
accent
#70DC4C
background
#FBFAF6
surface
#F7F3EC
border
#D0CDC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #997F30

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

Preview Lab → · Contrast checker → · Palette generator →

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