#97831B#97831B

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

Color values

HEX#97831B
RGBrgb(151, 131, 27)
HSLhsl(50, 70%, 35%)
HSVhsv(50, 82%, 59%)
CMYKcmyk(0%, 13.2%, 82.1%, 40.8%)
CIE-LABlab(54.96, -3.22, 54.00)
CIE-LCHlch(54.96, 54.10, 93.42°)
OKLaboklab(61.07% -0.0152 0.1167)
OKLCHoklch(61.07% 0.118 97.4)
XYZxyz(21.0778, 22.8922, 4.3451)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97831B #1B2F97
analogous
#97451B #97831B #6D971B
triadic
#97831B #1B9783 #831B97
tetradic
#97831B #1B9745 #1B2F97 #971B6D
square
#97831B #1B9745 #1B2F97 #971B6D
split-complementary
#97831B #1B6D97 #451B97
monochromatic
#2F2908 #635612 #97831B #CBB024 #DFC84D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97831B#FFFFFF#000000##000000
##97831B1.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)
#918000
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#A47870
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97831b;
/* rgb */ color: rgb(151, 131, 27);
/* oklch */ color: oklch(61.1% 0.118 97.4);
Tailwind
colors: {
  custom: {
    50: '#baa662',
    500: '#97831b',
    950: '#000000',
  },
}
SCSS
$custom: #97831b;
$custom-light: #baa662;
$custom-dark: #000000;
JSON
{
  "hex": "#97831b",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 50.323,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61067,
    "c": 0.11768,
    "h": 97.4
  },
  "luminance": 0.22891
}

Semantic roles & 50–950 ramp

primary
#97831B
secondary
#4C5FC1
accent
#58EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97831B

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

Preview Lab → · Contrast checker → · Palette generator →

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