#97812A#97812A

#97812A is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.7% C 0.107 H 94.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#97812A
RGBrgb(151, 129, 42)
HSLhsl(48, 56%, 38%)
HSVhsv(48, 72%, 59%)
CMYKcmyk(0%, 14.6%, 72.2%, 40.8%)
CIE-LABlab(54.50, -1.45, 48.00)
CIE-LCHlch(54.50, 48.02, 91.73°)
OKLaboklab(60.73% -0.0086 0.107)
OKLCHoklch(60.73% 0.107 94.6)
XYZxyz(21.0317, 22.4481, 5.4152)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97812A #2A4097
analogous
#974A2A #97812A #76972A
triadic
#97812A #2A9781 #812A97
tetradic
#97812A #2A974A #2A4097 #972A76
square
#97812A #2A974A #2A4097 #972A76
split-complementary
#97812A #2A7697 #4A2A97
monochromatic
#372F0F #67581D #97812A #C7AA37 #D5BE67

Accessibility & contrast

On white

3.83
#97812A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##97812A#FFFFFF#000000##000000
##97812A1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1D
Deuteranopia (green-blind)
#94852F
Tritanopia (blue-blind)
#A3776F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #97812a;
/* rgb */ color: rgb(151, 129, 42);
/* oklch */ color: oklch(60.7% 0.107 94.6);
Tailwind
colors: {
  custom: {
    50: '#b9a569',
    500: '#97812a',
    950: '#000000',
  },
}
SCSS
$custom: #97812a;
$custom-light: #b9a569;
$custom-dark: #000000;
JSON
{
  "hex": "#97812a",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 42
  },
  "hsl": {
    "h": 47.89,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.60731,
    "c": 0.10733,
    "h": 94.6
  },
  "luminance": 0.22447
}

Semantic roles & 50–950 ramp

primary
#97812A
secondary
#6274BB
accent
#67E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97812A

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

Preview Lab → · Contrast checker → · Palette generator →

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