#97811F#97811F

#97811F is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.7% C 0.114 H 95.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#97811F
RGBrgb(151, 129, 31)
HSLhsl(49, 66%, 36%)
HSVhsv(49, 79%, 59%)
CMYKcmyk(0%, 14.6%, 79.5%, 40.8%)
CIE-LABlab(54.43, -1.96, 52.19)
CIE-LCHlch(54.43, 52.23, 92.16°)
OKLaboklab(60.65% -0.0112 0.1137)
OKLCHoklch(60.65% 0.114 95.6)
XYZxyz(20.8612, 22.3799, 4.5170)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97811F #1F3597
analogous
#97451F #97811F #71971F
triadic
#97811F #1F9781 #811F97
tetradic
#97811F #1F9745 #1F3597 #971F71
square
#97811F #1F9745 #1F3597 #971F71
split-complementary
#97811F #1F7197 #451F97
monochromatic
#312A0A #645615 #97811F #CAAC29 #DCC354

Accessibility & contrast

On white

3.84
#97811F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#97811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97811F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97811F#FFFFFF#000000##000000
##97811F1.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E09
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#A4766E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #97811f;
/* rgb */ color: rgb(151, 129, 31);
/* oklch */ color: oklch(60.7% 0.114 95.6);
Tailwind
colors: {
  custom: {
    50: '#b9a563',
    500: '#97811f',
    950: '#000000',
  },
}
SCSS
$custom: #97811f;
$custom-light: #b9a563;
$custom-dark: #000000;
JSON
{
  "hex": "#97811f",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 49,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60652,
    "c": 0.11421,
    "h": 95.6
  },
  "luminance": 0.22379
}

Semantic roles & 50–950 ramp

primary
#97811F
secondary
#5266BF
accent
#5EE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97811F

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

Preview Lab → · Contrast checker → · Palette generator →

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