#97862F#97862F

#97862F is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.107 H 98.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#97862F
RGBrgb(151, 134, 47)
HSLhsl(50, 53%, 39%)
HSVhsv(50, 69%, 59%)
CMYKcmyk(0%, 11.3%, 68.9%, 40.8%)
CIE-LABlab(55.92, -3.94, 47.31)
CIE-LCHlch(55.92, 47.47, 94.76°)
OKLaboklab(61.87% -0.0151 0.1064)
OKLCHoklch(61.87% 0.107 98.1)
XYZxyz(21.8017, 23.8358, 6.1412)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97862F #2F4097
analogous
#97522F #97862F #74972F
triadic
#97862F #2F9786 #862F97
tetradic
#97862F #2F9752 #2F4097 #972F74
square
#97862F #2F9752 #2F4097 #972F74
split-complementary
#97862F #2F7497 #522F97
monochromatic
#3A3312 #685D20 #97862F #C3AE40 #D2C26E

Accessibility & contrast

On white

3.64
#97862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#97862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97862F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97862F#FFFFFF#000000##000000
##97862F1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938324
Deuteranopia (green-blind)
#988934
Tritanopia (blue-blind)
#A37C74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #97862f;
/* rgb */ color: rgb(151, 134, 47);
/* oklch */ color: oklch(61.9% 0.107 98.1);
Tailwind
colors: {
  custom: {
    50: '#b9a86c',
    500: '#97862f',
    950: '#000000',
  },
}
SCSS
$custom: #97862f;
$custom-light: #b9a86c;
$custom-dark: #000000;
JSON
{
  "hex": "#97862f",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 50.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.10749,
    "h": 98.1
  },
  "luminance": 0.23835
}

Semantic roles & 50–950 ramp

primary
#97862F
secondary
#6876B9
accent
#63DC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97862F

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

Preview Lab → · Contrast checker → · Palette generator →

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