#97851B#97851B

#97851B is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.5% C 0.119 H 98.8°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#97851B
RGBrgb(151, 133, 27)
HSLhsl(51, 70%, 35%)
HSVhsv(51, 82%, 59%)
CMYKcmyk(0%, 11.9%, 82.1%, 40.8%)
CIE-LABlab(55.52, -4.33, 54.49)
CIE-LCHlch(55.52, 54.66, 94.54°)
OKLaboklab(61.51% -0.0183 0.1178)
OKLCHoklch(61.51% 0.119 98.8)
XYZxyz(21.3490, 23.4346, 4.4355)
Luminance0.2343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97851B #1B2D97
analogous
#97471B #97851B #6B971B
triadic
#97851B #1B9785 #851B97
tetradic
#97851B #1B9747 #1B2D97 #971B6B
square
#97851B #1B9747 #1B2D97 #971B6B
split-complementary
#97851B #1B6B97 #471B97
monochromatic
#2F2A08 #635712 #97851B #CBB324 #DFCA4D

Accessibility & contrast

On white

3.69
#97851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#97851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97851B
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97851B#FFFFFF#000000##000000
##97851B1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#988823
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #97851b;
/* rgb */ color: rgb(151, 133, 27);
/* oklch */ color: oklch(61.5% 0.119 98.8);
Tailwind
colors: {
  custom: {
    50: '#baa862',
    500: '#97851b',
    950: '#000000',
  },
}
SCSS
$custom: #97851b;
$custom-light: #baa862;
$custom-dark: #000000;
JSON
{
  "hex": "#97851b",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 51.29,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61508,
    "c": 0.11917,
    "h": 98.8
  },
  "luminance": 0.23433
}

Semantic roles & 50–950 ramp

primary
#97851B
secondary
#4C5DC1
accent
#55EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97851B

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

Preview Lab → · Contrast checker → · Palette generator →

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