#97841F#97841F

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

Color values

HEX#97841F
RGBrgb(151, 132, 31)
HSLhsl(51, 66%, 36%)
HSVhsv(51, 79%, 59%)
CMYKcmyk(0%, 12.6%, 79.5%, 40.8%)
CIE-LABlab(55.26, -3.63, 52.95)
CIE-LCHlch(55.26, 53.07, 93.92°)
OKLaboklab(61.31% -0.0159 0.1153)
OKLCHoklch(61.31% 0.116 97.9)
XYZxyz(21.2622, 23.1819, 4.6507)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97841F #1F3297
analogous
#97481F #97841F #6E971F
triadic
#97841F #1F9784 #841F97
tetradic
#97841F #1F9748 #1F3297 #971F6E
square
#97841F #1F9748 #1F3297 #971F6E
split-complementary
#97841F #1F6E97 #481F97
monochromatic
#312B0A #645815 #97841F #CAB029 #DCC754

Accessibility & contrast

On white

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

On black

5.64
#97841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97841F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97841F#FFFFFF#000000##000000
##97841F1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928107
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#A37971
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97841f;
/* rgb */ color: rgb(151, 132, 31);
/* oklch */ color: oklch(61.3% 0.116 97.9);
Tailwind
colors: {
  custom: {
    50: '#b9a764',
    500: '#97841f',
    950: '#000000',
  },
}
SCSS
$custom: #97841f;
$custom-light: #b9a764;
$custom-dark: #000000;
JSON
{
  "hex": "#97841f",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 50.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6131,
    "c": 0.11638,
    "h": 97.9
  },
  "luminance": 0.23181
}

Semantic roles & 50–950 ramp

primary
#97841F
secondary
#5264BF
accent
#5AE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97841F

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

Preview Lab → · Contrast checker → · Palette generator →

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