#977F1C#977F1C

#977F1C is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.114 H 94.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#977F1C
RGBrgb(151, 127, 28)
HSLhsl(48, 69%, 35%)
HSVhsv(48, 81%, 59%)
CMYKcmyk(0%, 15.9%, 81.5%, 40.8%)
CIE-LABlab(53.86, -0.96, 52.70)
CIE-LCHlch(53.86, 52.71, 91.05°)
OKLaboklab(60.2% -0.0087 0.1141)
OKLCHoklch(60.2% 0.114 94.3)
XYZxyz(20.5626, 21.8431, 4.2315)
Luminance0.2184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F1C #1C3497
analogous
#97421C #977F1C #71971C
triadic
#977F1C #1C977F #7F1C97
tetradic
#977F1C #1C9742 #1C3497 #971C71
square
#977F1C #1C9742 #1C3497 #971C71
split-complementary
#977F1C #1C7197 #421C97
monochromatic
#302809 #635412 #977F1C #CBAA26 #DEC24F

Accessibility & contrast

On white

3.91
#977F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#977F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977F1C
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977F1C#FFFFFF#000000##000000
##977F1C1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D03
Deuteranopia (green-blind)
#938423
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f1c;
/* rgb */ color: rgb(151, 127, 28);
/* oklch */ color: oklch(60.2% 0.114 94.3);
Tailwind
colors: {
  custom: {
    50: '#baa362',
    500: '#977f1c',
    950: '#000000',
  },
}
SCSS
$custom: #977f1c;
$custom-light: #baa362;
$custom-dark: #000000;
JSON
{
  "hex": "#977f1c",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 48.293,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60198,
    "c": 0.11444,
    "h": 94.3
  },
  "luminance": 0.21842
}

Semantic roles & 50–950 ramp

primary
#977F1C
secondary
#4E64C1
accent
#5EEC3C
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #977F1C

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

Preview Lab → · Contrast checker → · Palette generator →

#977F1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva