#97851A#97851A

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

Color values

HEX#97851A
RGBrgb(151, 133, 26)
HSLhsl(51, 71%, 35%)
HSVhsv(51, 83%, 59%)
CMYKcmyk(0%, 11.9%, 82.8%, 40.8%)
CIE-LABlab(55.51, -4.36, 54.79)
CIE-LCHlch(55.51, 54.97, 94.55°)
OKLaboklab(61.5% -0.0185 0.1182)
OKLCHoklch(61.5% 0.12 98.9)
XYZxyz(21.3376, 23.4301, 4.3756)
Luminance0.2343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97851A #1A2C97
analogous
#97471A #97851A #6B971A
triadic
#97851A #1A9785 #851A97
tetradic
#97851A #1A9747 #1A2C97 #971A6B
square
#97851A #1A9747 #1A2C97 #971A6B
split-complementary
#97851A #1A6B97 #471A97
monochromatic
#2F2908 #635711 #97851A #CBB323 #E0CB4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97851A#FFFFFF#000000##000000
##97851A1.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: #97851a;
/* rgb */ color: rgb(151, 133, 26);
/* oklch */ color: oklch(61.5% 0.120 98.9);
Tailwind
colors: {
  custom: {
    50: '#baa862',
    500: '#97851a',
    950: '#000000',
  },
}
SCSS
$custom: #97851a;
$custom-light: #baa862;
$custom-dark: #000000;
JSON
{
  "hex": "#97851a",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 51.36,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61503,
    "c": 0.11963,
    "h": 98.9
  },
  "luminance": 0.23429
}

Semantic roles & 50–950 ramp

primary
#97851A
secondary
#4B5CC2
accent
#54ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97851A

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

Preview Lab → · Contrast checker → · Palette generator →

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