#97841A#97841A

#97841A is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.3% C 0.119 H 98.2°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#97841A
RGBrgb(151, 132, 26)
HSLhsl(51, 71%, 35%)
HSVhsv(51, 83%, 59%)
CMYKcmyk(0%, 12.6%, 82.8%, 40.8%)
CIE-LABlab(55.23, -3.81, 54.55)
CIE-LCHlch(55.23, 54.68, 94.00°)
OKLaboklab(61.28% -0.0169 0.1177)
OKLCHoklch(61.28% 0.119 98.2)
XYZxyz(21.2013, 23.1575, 4.3302)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97841A #1A2D97
analogous
#97461A #97841A #6C971A
triadic
#97841A #1A9784 #841A97
tetradic
#97841A #1A9746 #1A2D97 #971A6C
square
#97841A #1A9746 #1A2D97 #971A6C
split-complementary
#97841A #1A6C97 #461A97
monochromatic
#2F2908 #635611 #97841A #CBB223 #E0C94B

Accessibility & contrast

On white

3.73
#97841A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#97841A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97841A
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97841A#FFFFFF#000000##000000
##97841A1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#A47971
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97841a;
/* rgb */ color: rgb(151, 132, 26);
/* oklch */ color: oklch(61.3% 0.119 98.2);
Tailwind
colors: {
  custom: {
    50: '#baa762',
    500: '#97841a',
    950: '#000000',
  },
}
SCSS
$custom: #97841a;
$custom-light: #baa762;
$custom-dark: #000000;
JSON
{
  "hex": "#97841a",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 50.88,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61282,
    "c": 0.11889,
    "h": 98.2
  },
  "luminance": 0.23156
}

Semantic roles & 50–950 ramp

primary
#97841A
secondary
#4B5DC2
accent
#56ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #97841A

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

Preview Lab → · Contrast checker → · Palette generator →

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