#97851C#97851C

#97851C 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#97851C
RGBrgb(151, 133, 28)
HSLhsl(51, 69%, 35%)
HSVhsv(51, 81%, 59%)
CMYKcmyk(0%, 11.9%, 81.5%, 40.8%)
CIE-LABlab(55.52, -4.29, 54.18)
CIE-LCHlch(55.52, 54.35, 94.53°)
OKLaboklab(61.51% -0.0181 0.1173)
OKLCHoklch(61.51% 0.119 98.8)
XYZxyz(21.3607, 23.4393, 4.4975)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97851C #1C2E97
analogous
#97481C #97851C #6B971C
triadic
#97851C #1C9785 #851C97
tetradic
#97851C #1C9748 #1C2E97 #971C6B
square
#97851C #1C9748 #1C2E97 #971C6B
split-complementary
#97851C #1C6B97 #481C97
monochromatic
#302A09 #635812 #97851C #CBB226 #DEC94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97851C#FFFFFF#000000##000000
##97851C1.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)
#988824
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #97851c;
/* rgb */ color: rgb(151, 133, 28);
/* oklch */ color: oklch(61.5% 0.119 98.8);
Tailwind
colors: {
  custom: {
    50: '#baa863',
    500: '#97851c',
    950: '#000000',
  },
}
SCSS
$custom: #97851c;
$custom-light: #baa863;
$custom-dark: #000000;
JSON
{
  "hex": "#97851c",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 28
  },
  "hsl": {
    "h": 51.22,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61513,
    "c": 0.11868,
    "h": 98.8
  },
  "luminance": 0.23438
}

Semantic roles & 50–950 ramp

primary
#97851C
secondary
#4E5FC1
accent
#56EC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97851C

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

Preview Lab → · Contrast checker → · Palette generator →

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