#97811A#97811A

#97811A is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.6% C 0.117 H 96.0°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#97811A
RGBrgb(151, 129, 26)
HSLhsl(49, 71%, 35%)
HSVhsv(49, 83%, 59%)
CMYKcmyk(0%, 14.6%, 82.8%, 40.8%)
CIE-LABlab(54.40, -2.15, 53.83)
CIE-LCHlch(54.40, 53.87, 92.28°)
OKLaboklab(60.62% -0.0122 0.1161)
OKLCHoklch(60.62% 0.117 96)
XYZxyz(20.8004, 22.3556, 4.1965)
Luminance0.2235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97811A #1A3097
analogous
#97431A #97811A #6F971A
triadic
#97811A #1A9781 #811A97
tetradic
#97811A #1A9743 #1A3097 #971A6F
square
#97811A #1A9743 #1A3097 #971A6F
split-complementary
#97811A #1A6F97 #431A97
monochromatic
#2F2808 #635411 #97811A #CBAE23 #E0C64B

Accessibility & contrast

On white

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

On black

5.47
#97811A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97811A
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97811A#FFFFFF#000000##000000
##97811A1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #97811a;
/* rgb */ color: rgb(151, 129, 26);
/* oklch */ color: oklch(60.6% 0.117 96.0);
Tailwind
colors: {
  custom: {
    50: '#baa561',
    500: '#97811a',
    950: '#000000',
  },
}
SCSS
$custom: #97811a;
$custom-light: #baa561;
$custom-dark: #000000;
JSON
{
  "hex": "#97811a",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 26
  },
  "hsl": {
    "h": 49.44,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60623,
    "c": 0.11675,
    "h": 96
  },
  "luminance": 0.22354
}

Semantic roles & 50–950 ramp

primary
#97811A
secondary
#4B60C2
accent
#5AED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #97811A

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

Preview Lab → · Contrast checker → · Palette generator →

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