#97851F#97851F

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

Color values

HEX#97851F
RGBrgb(151, 133, 31)
HSLhsl(51, 66%, 36%)
HSVhsv(51, 79%, 59%)
CMYKcmyk(0%, 11.9%, 79.5%, 40.8%)
CIE-LABlab(55.54, -4.18, 53.20)
CIE-LCHlch(55.54, 53.37, 94.49°)
OKLaboklab(61.53% -0.0175 0.1158)
OKLCHoklch(61.53% 0.117 98.6)
XYZxyz(21.3984, 23.4544, 4.6961)
Luminance0.2345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97851F #1F3197
analogous
#97491F #97851F #6D971F
triadic
#97851F #1F9785 #851F97
tetradic
#97851F #1F9749 #1F3197 #971F6D
square
#97851F #1F9749 #1F3197 #971F6D
split-complementary
#97851F #1F6D97 #491F97
monochromatic
#312C0A #645815 #97851F #CAB229 #DCC854

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97851F#FFFFFF#000000##000000
##97851F1.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)
#938106
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #97851f;
/* rgb */ color: rgb(151, 133, 31);
/* oklch */ color: oklch(61.5% 0.117 98.6);
Tailwind
colors: {
  custom: {
    50: '#b9a864',
    500: '#97851f',
    950: '#000000',
  },
}
SCSS
$custom: #97851f;
$custom-light: #b9a864;
$custom-dark: #000000;
JSON
{
  "hex": "#97851f",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 51,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6153,
    "c": 0.11713,
    "h": 98.6
  },
  "luminance": 0.23453
}

Semantic roles & 50–950 ramp

primary
#97851F
secondary
#5263BF
accent
#58E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97851F

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

Preview Lab → · Contrast checker → · Palette generator →

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