#97861B#97861B

#97861B is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.7% C 0.120 H 99.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#97861B
RGBrgb(151, 134, 27)
HSLhsl(52, 70%, 35%)
HSVhsv(52, 82%, 59%)
CMYKcmyk(0%, 11.3%, 82.1%, 40.8%)
CIE-LABlab(55.80, -4.88, 54.73)
CIE-LCHlch(55.80, 54.95, 95.09°)
OKLaboklab(61.73% -0.0198 0.1183)
OKLCHoklch(61.73% 0.12 99.5)
XYZxyz(21.4865, 23.7097, 4.4814)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97861B #1B2C97
analogous
#97481B #97861B #6A971B
triadic
#97861B #1B9786 #861B97
tetradic
#97861B #1B9748 #1B2C97 #971B6A
square
#97861B #1B9748 #1B2C97 #971B6A
split-complementary
#97861B #1B6A97 #481B97
monochromatic
#2F2A08 #635812 #97861B #CBB424 #DFCB4D

Accessibility & contrast

On white

3.66
#97861B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#97861B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97861B
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97861B#FFFFFF#000000##000000
##97861B1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#998823
Tritanopia (blue-blind)
#A37B72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #97861b;
/* rgb */ color: rgb(151, 134, 27);
/* oklch */ color: oklch(61.7% 0.120 99.5);
Tailwind
colors: {
  custom: {
    50: '#baa862',
    500: '#97861b',
    950: '#000000',
  },
}
SCSS
$custom: #97861b;
$custom-light: #baa862;
$custom-dark: #000000;
JSON
{
  "hex": "#97861b",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 51.774,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61729,
    "c": 0.11993,
    "h": 99.5
  },
  "luminance": 0.23709
}

Semantic roles & 50–950 ramp

primary
#97861B
secondary
#4C5CC1
accent
#54EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97861B

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

Preview Lab → · Contrast checker → · Palette generator →

#97861B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva