#977F28#977F28

#977F28 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.3% C 0.107 H 93.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#977F28
RGBrgb(151, 127, 40)
HSLhsl(47, 58%, 37%)
HSVhsv(47, 74%, 59%)
CMYKcmyk(0%, 15.9%, 73.5%, 40.8%)
CIE-LABlab(53.93, -0.44, 48.27)
CIE-LCHlch(53.93, 48.27, 90.52°)
OKLaboklab(60.28% -0.0059 0.1072)
OKLCHoklch(60.28% 0.107 93.2)
XYZxyz(20.7360, 21.9124, 5.1444)
Luminance0.2191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#977F28 #284097
analogous
#974828 #977F28 #789728
triadic
#977F28 #28977F #7F2897
tetradic
#977F28 #289748 #284097 #972878
square
#977F28 #289748 #284097 #972878
split-complementary
#977F28 #287897 #482897
monochromatic
#362E0E #67561B #977F28 #C7A835 #D6BD64

Accessibility & contrast

On white

3.90
#977F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#977F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #977F28
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##977F28#FFFFFF#000000##000000
##977F281.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1B
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#A3756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #977f28;
/* rgb */ color: rgb(151, 127, 40);
/* oklch */ color: oklch(60.3% 0.107 93.2);
Tailwind
colors: {
  custom: {
    50: '#b9a368',
    500: '#977f28',
    950: '#000000',
  },
}
SCSS
$custom: #977f28;
$custom-light: #b9a368;
$custom-dark: #000000;
JSON
{
  "hex": "#977f28",
  "rgb": {
    "r": 151,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 47.027,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6028,
    "c": 0.10734,
    "h": 93.2
  },
  "luminance": 0.21911
}

Semantic roles & 50–950 ramp

primary
#977F28
secondary
#5F73BC
accent
#68E146
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #977F28

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

Preview Lab → · Contrast checker → · Palette generator →

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