#997B1C#997B1C

#997B1C is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.5% C 0.112 H 89.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#997B1C
RGBrgb(153, 123, 28)
HSLhsl(46, 69%, 35%)
HSVhsv(46, 82%, 60%)
CMYKcmyk(0%, 19.6%, 81.7%, 40%)
CIE-LABlab(52.98, 2.21, 52.00)
CIE-LCHlch(52.98, 52.04, 87.57°)
OKLaboklab(59.55% 0.0002 0.1125)
OKLCHoklch(59.55% 0.112 89.9)
XYZxyz(20.4307, 21.0234, 4.0802)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#997B1C #1C3A99
analogous
#993C1C #997B1C #78991C
triadic
#997B1C #1C997B #7B1C99
tetradic
#997B1C #1C993C #1C3A99 #991C78
square
#997B1C #1C993C #1C3A99 #991C78
split-complementary
#997B1C #1C7899 #3C1C99
monochromatic
#322809 #655113 #997B1C #CDA525 #DFBD50

Accessibility & contrast

On white

4.04
#997B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#997B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #997B1C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##997B1C#FFFFFF#000000##000000
##997B1C1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A05
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#A67069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #997b1c;
/* rgb */ color: rgb(153, 123, 28);
/* oklch */ color: oklch(59.5% 0.112 89.9);
Tailwind
colors: {
  custom: {
    50: '#bba061',
    500: '#997b1c',
    950: '#000000',
  },
}
SCSS
$custom: #997b1c;
$custom-light: #bba061;
$custom-dark: #000000;
JSON
{
  "hex": "#997b1c",
  "rgb": {
    "r": 153,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 45.6,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59547,
    "c": 0.11247,
    "h": 89.9
  },
  "luminance": 0.21022
}

Semantic roles & 50–950 ramp

primary
#997B1C
secondary
#4F6BC2
accent
#66EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E05
muted
#827E7A

Preview Lab

Preview with #997B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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