#97812D#97812D

#97812D is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.8% C 0.105 H 94.2°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#97812D
RGBrgb(151, 129, 45)
HSLhsl(48, 54%, 38%)
HSVhsv(48, 70%, 59%)
CMYKcmyk(0%, 14.6%, 70.2%, 40.8%)
CIE-LABlab(54.52, -1.29, 46.74)
CIE-LCHlch(54.52, 46.75, 91.58°)
OKLaboklab(60.76% -0.0077 0.1049)
OKLCHoklch(60.76% 0.105 94.2)
XYZxyz(21.0875, 22.4704, 5.7086)
Luminance0.2247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97812D #2D4397
analogous
#974C2D #97812D #78972D
triadic
#97812D #2D9781 #812D97
tetradic
#97812D #2D974C #2D4397 #972D78
square
#97812D #2D974C #2D4397 #972D78
split-complementary
#97812D #2D7897 #4C2D97
monochromatic
#393011 #68591F #97812D #C5A93C #D3BE6B

Accessibility & contrast

On white

3.82
#97812D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#97812D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97812D
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97812D#FFFFFF#000000##000000
##97812D1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F22
Deuteranopia (green-blind)
#948531
Tritanopia (blue-blind)
#A37770
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #97812d;
/* rgb */ color: rgb(151, 129, 45);
/* oklch */ color: oklch(60.8% 0.105 94.2);
Tailwind
colors: {
  custom: {
    50: '#b9a56b',
    500: '#97812d',
    950: '#000000',
  },
}
SCSS
$custom: #97812d;
$custom-light: #b9a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#97812d",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 45
  },
  "hsl": {
    "h": 47.547,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60757,
    "c": 0.10515,
    "h": 94.2
  },
  "luminance": 0.22469
}

Semantic roles & 50–950 ramp

primary
#97812D
secondary
#6677BA
accent
#69DD4A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97812D

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

Preview Lab → · Contrast checker → · Palette generator →

#97812D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva