#97831D#97831D

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

Color values

HEX#97831D
RGBrgb(151, 131, 29)
HSLhsl(50, 68%, 35%)
HSVhsv(50, 81%, 59%)
CMYKcmyk(0%, 13.2%, 80.8%, 40.8%)
CIE-LABlab(54.97, -3.15, 53.36)
CIE-LCHlch(54.97, 53.46, 93.38°)
OKLaboklab(61.08% -0.0148 0.1158)
OKLCHoklch(61.08% 0.117 97.3)
XYZxyz(21.1017, 22.9018, 4.4712)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97831D #1D3197
analogous
#97461D #97831D #6E971D
triadic
#97831D #1D9783 #831D97
tetradic
#97831D #1D9746 #1D3197 #971D6E
square
#97831D #1D9746 #1D3197 #971D6E
split-complementary
#97831D #1D6E97 #461D97
monochromatic
#302A09 #645613 #97831D #CAB027 #DEC651

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97831D#FFFFFF#000000##000000
##97831D1.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)
#918003
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#A47870
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97831d;
/* rgb */ color: rgb(151, 131, 29);
/* oklch */ color: oklch(61.1% 0.117 97.3);
Tailwind
colors: {
  custom: {
    50: '#baa663',
    500: '#97831d',
    950: '#000000',
  },
}
SCSS
$custom: #97831d;
$custom-light: #baa663;
$custom-dark: #000000;
JSON
{
  "hex": "#97831d",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 50.164,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61078,
    "c": 0.11669,
    "h": 97.3
  },
  "luminance": 0.22901
}

Semantic roles & 50–950 ramp

primary
#97831D
secondary
#4F62C0
accent
#5AEB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97831D

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

Preview Lab → · Contrast checker → · Palette generator →

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