#97861A#97861A

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

Color values

HEX#97861A
RGBrgb(151, 134, 26)
HSLhsl(52, 71%, 35%)
HSVhsv(52, 83%, 59%)
CMYKcmyk(0%, 11.3%, 82.8%, 40.8%)
CIE-LABlab(55.79, -4.91, 55.03)
CIE-LCHlch(55.79, 55.25, 95.10°)
OKLaboklab(61.72% -0.02 0.1187)
OKLCHoklch(61.72% 0.12 99.6)
XYZxyz(21.4752, 23.7052, 4.4215)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97861A #1A2B97
analogous
#97481A #97861A #6A971A
triadic
#97861A #1A9786 #861A97
tetradic
#97861A #1A9748 #1A2B97 #971A6A
square
#97861A #1A9748 #1A2B97 #971A6A
split-complementary
#97861A #1A6A97 #481A97
monochromatic
#2F2908 #635811 #97861A #CBB423 #E0CC4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97861A#FFFFFF#000000##000000
##97861A1.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: #97861a;
/* rgb */ color: rgb(151, 134, 26);
/* oklch */ color: oklch(61.7% 0.120 99.6);
Tailwind
colors: {
  custom: {
    50: '#baa862',
    500: '#97861a',
    950: '#000000',
  },
}
SCSS
$custom: #97861a;
$custom-light: #baa862;
$custom-dark: #000000;
JSON
{
  "hex": "#97861a",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 26
  },
  "hsl": {
    "h": 51.84,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61724,
    "c": 0.12041,
    "h": 99.6
  },
  "luminance": 0.23704
}

Semantic roles & 50–950 ramp

primary
#97861A
secondary
#4B5BC2
accent
#53ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97861A

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

Preview Lab → · Contrast checker → · Palette generator →

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