#97801F#97801F

#97801F is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.114 H 94.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#97801F
RGBrgb(151, 128, 31)
HSLhsl(49, 66%, 36%)
HSVhsv(49, 79%, 59%)
CMYKcmyk(0%, 15.2%, 79.5%, 40.8%)
CIE-LABlab(54.15, -1.41, 51.94)
CIE-LCHlch(54.15, 51.96, 91.55°)
OKLaboklab(60.43% -0.0096 0.1131)
OKLCHoklch(60.43% 0.114 94.9)
XYZxyz(20.7301, 22.1178, 4.4733)
Luminance0.2212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97801F #1F3697
analogous
#97441F #97801F #72971F
triadic
#97801F #1F9780 #801F97
tetradic
#97801F #1F9744 #1F3697 #971F72
square
#97801F #1F9744 #1F3697 #971F72
split-complementary
#97801F #1F7297 #441F97
monochromatic
#312A0A #645515 #97801F #CAAB29 #DCC254

Accessibility & contrast

On white

3.87
#97801F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#97801F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97801F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97801F#FFFFFF#000000##000000
##97801F1.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)
#8E7D09
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #97801f;
/* rgb */ color: rgb(151, 128, 31);
/* oklch */ color: oklch(60.4% 0.114 94.9);
Tailwind
colors: {
  custom: {
    50: '#baa463',
    500: '#97801f',
    950: '#000000',
  },
}
SCSS
$custom: #97801f;
$custom-light: #baa463;
$custom-dark: #000000;
JSON
{
  "hex": "#97801f",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 48.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60433,
    "c": 0.11353,
    "h": 94.9
  },
  "luminance": 0.22117
}

Semantic roles & 50–950 ramp

primary
#97801F
secondary
#5267BF
accent
#5FE93F
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97801F

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

Preview Lab → · Contrast checker → · Palette generator →

#97801F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva