#97842F#97842F

#97842F is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.4% C 0.106 H 96.5°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#97842F
RGBrgb(151, 132, 47)
HSLhsl(49, 53%, 39%)
HSVhsv(49, 69%, 59%)
CMYKcmyk(0%, 12.6%, 68.9%, 40.8%)
CIE-LABlab(55.37, -2.84, 46.73)
CIE-LCHlch(55.37, 46.82, 93.47°)
OKLaboklab(61.43% -0.0119 0.1052)
OKLCHoklch(61.43% 0.106 96.5)
XYZxyz(21.5279, 23.2882, 6.0499)
Luminance0.2329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97842F #2F4297
analogous
#97502F #97842F #76972F
triadic
#97842F #2F9784 #842F97
tetradic
#97842F #2F9750 #2F4297 #972F76
square
#97842F #2F9750 #2F4297 #972F76
split-complementary
#97842F #2F7697 #502F97
monochromatic
#3A3212 #685B20 #97842F #C3AB40 #D2C06E

Accessibility & contrast

On white

3.71
#97842F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#97842F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97842F
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97842F#FFFFFF#000000##000000
##97842F1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918124
Deuteranopia (green-blind)
#968734
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #97842f;
/* rgb */ color: rgb(151, 132, 47);
/* oklch */ color: oklch(61.4% 0.106 96.5);
Tailwind
colors: {
  custom: {
    50: '#b9a76c',
    500: '#97842f',
    950: '#000000',
  },
}
SCSS
$custom: #97842f;
$custom-light: #b9a76c;
$custom-dark: #000000;
JSON
{
  "hex": "#97842f",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 49.038,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.61431,
    "c": 0.10589,
    "h": 96.5
  },
  "luminance": 0.23287
}

Semantic roles & 50–950 ramp

primary
#97842F
secondary
#6877B9
accent
#66DC4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97842F

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

Preview Lab → · Contrast checker → · Palette generator →

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