#97862A#97862A

#97862A is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.8% C 0.111 H 98.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#97862A
RGBrgb(151, 134, 42)
HSLhsl(51, 56%, 38%)
HSVhsv(51, 72%, 59%)
CMYKcmyk(0%, 11.3%, 72.2%, 40.8%)
CIE-LABlab(55.88, -4.22, 49.38)
CIE-LCHlch(55.88, 49.57, 94.89°)
OKLaboklab(61.83% -0.0165 0.1099)
OKLCHoklch(61.83% 0.111 98.5)
XYZxyz(21.7065, 23.7977, 5.6401)
Luminance0.2380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97862A #2A3B97
analogous
#974F2A #97862A #72972A
triadic
#97862A #2A9786 #862A97
tetradic
#97862A #2A974F #2A3B97 #972A72
square
#97862A #2A974F #2A3B97 #972A72
split-complementary
#97862A #2A7297 #4F2A97
monochromatic
#37310F #675C1D #97862A #C7B037 #D5C467

Accessibility & contrast

On white

3.65
#97862A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#97862A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97862A
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97862A#FFFFFF#000000##000000
##97862A1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93831C
Deuteranopia (green-blind)
#988830
Tritanopia (blue-blind)
#A37C74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #97862a;
/* rgb */ color: rgb(151, 134, 42);
/* oklch */ color: oklch(61.8% 0.111 98.5);
Tailwind
colors: {
  custom: {
    50: '#b9a86a',
    500: '#97862a',
    950: '#000000',
  },
}
SCSS
$custom: #97862a;
$custom-light: #b9a86a;
$custom-dark: #000000;
JSON
{
  "hex": "#97862a",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 50.642,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61828,
    "c": 0.11115,
    "h": 98.5
  },
  "luminance": 0.23797
}

Semantic roles & 50–950 ramp

primary
#97862A
secondary
#6270BB
accent
#60E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97862A

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

Preview Lab → · Contrast checker → · Palette generator →

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