#97842A#97842A

#97842A is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.110 H 97.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#97842A
RGBrgb(151, 132, 42)
HSLhsl(50, 56%, 38%)
HSVhsv(50, 72%, 59%)
CMYKcmyk(0%, 12.6%, 72.2%, 40.8%)
CIE-LABlab(55.33, -3.12, 48.83)
CIE-LCHlch(55.33, 48.93, 93.66°)
OKLaboklab(61.39% -0.0133 0.1088)
OKLCHoklch(61.39% 0.11 97)
XYZxyz(21.4327, 23.2501, 5.5488)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97842A #2A3D97
analogous
#974D2A #97842A #74972A
triadic
#97842A #2A9784 #842A97
tetradic
#97842A #2A974D #2A3D97 #972A74
square
#97842A #2A974D #2A3D97 #972A74
split-complementary
#97842A #2A7497 #4D2A97
monochromatic
#37300F #675A1D #97842A #C7AE37 #D5C167

Accessibility & contrast

On white

3.72
#97842A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#97842A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97842A
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97842A#FFFFFF#000000##000000
##97842A1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811D
Deuteranopia (green-blind)
#96872F
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97842a;
/* rgb */ color: rgb(151, 132, 42);
/* oklch */ color: oklch(61.4% 0.110 97.0);
Tailwind
colors: {
  custom: {
    50: '#b9a769',
    500: '#97842a',
    950: '#000000',
  },
}
SCSS
$custom: #97842a;
$custom-light: #b9a769;
$custom-dark: #000000;
JSON
{
  "hex": "#97842a",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 49.541,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61387,
    "c": 0.10956,
    "h": 97
  },
  "luminance": 0.23249
}

Semantic roles & 50–950 ramp

primary
#97842A
secondary
#6271BB
accent
#62E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97842A

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

Preview Lab → · Contrast checker → · Palette generator →

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