#97831F#97831F

#97831F is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.1% C 0.116 H 97.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#97831F
RGBrgb(151, 131, 31)
HSLhsl(50, 66%, 36%)
HSVhsv(50, 79%, 59%)
CMYKcmyk(0%, 13.2%, 79.5%, 40.8%)
CIE-LABlab(54.98, -3.07, 52.70)
CIE-LCHlch(54.98, 52.79, 93.34°)
OKLaboklab(61.09% -0.0144 0.1147)
OKLCHoklch(61.09% 0.116 97.1)
XYZxyz(21.1272, 22.9120, 4.6057)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97831F #1F3397
analogous
#97471F #97831F #6F971F
triadic
#97831F #1F9783 #831F97
tetradic
#97831F #1F9747 #1F3397 #971F6F
square
#97831F #1F9747 #1F3397 #971F6F
split-complementary
#97831F #1F6F97 #471F97
monochromatic
#312B0A #645715 #97831F #CAAF29 #DCC554

Accessibility & contrast

On white

3.76
#97831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#97831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97831F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97831F#FFFFFF#000000##000000
##97831F1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97831f;
/* rgb */ color: rgb(151, 131, 31);
/* oklch */ color: oklch(61.1% 0.116 97.1);
Tailwind
colors: {
  custom: {
    50: '#b9a664',
    500: '#97831f',
    950: '#000000',
  },
}
SCSS
$custom: #97831f;
$custom-light: #b9a664;
$custom-dark: #000000;
JSON
{
  "hex": "#97831f",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 50,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6109,
    "c": 0.11564,
    "h": 97.1
  },
  "luminance": 0.22911
}

Semantic roles & 50–950 ramp

primary
#97831F
secondary
#5265BF
accent
#5BE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97831F

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

Preview Lab → · Contrast checker → · Palette generator →

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