#97841D#97841D

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

Color values

HEX#97841D
RGBrgb(151, 132, 29)
HSLhsl(51, 68%, 35%)
HSVhsv(51, 81%, 59%)
CMYKcmyk(0%, 12.6%, 80.8%, 40.8%)
CIE-LABlab(55.25, -3.70, 53.61)
CIE-LCHlch(55.25, 53.74, 93.95°)
OKLaboklab(61.3% -0.0163 0.1163)
OKLCHoklch(61.3% 0.117 98)
XYZxyz(21.2367, 23.1717, 4.5162)
Luminance0.2317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97841D #1D3097
analogous
#97471D #97841D #6D971D
triadic
#97841D #1D9784 #841D97
tetradic
#97841D #1D9747 #1D3097 #971D6D
square
#97841D #1D9747 #1D3097 #971D6D
split-complementary
#97841D #1D6D97 #471D97
monochromatic
#302A09 #645713 #97841D #CAB127 #DEC851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97841D#FFFFFF#000000##000000
##97841D1.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)
#928102
Deuteranopia (green-blind)
#978725
Tritanopia (blue-blind)
#A37971
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97841d;
/* rgb */ color: rgb(151, 132, 29);
/* oklch */ color: oklch(61.3% 0.117 98.0);
Tailwind
colors: {
  custom: {
    50: '#baa763',
    500: '#97841d',
    950: '#000000',
  },
}
SCSS
$custom: #97841d;
$custom-light: #baa763;
$custom-dark: #000000;
JSON
{
  "hex": "#97841d",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 50.656,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61298,
    "c": 0.11742,
    "h": 98
  },
  "luminance": 0.23171
}

Semantic roles & 50–950 ramp

primary
#97841D
secondary
#4F61C0
accent
#58EB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97841D

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

Preview Lab → · Contrast checker → · Palette generator →

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