#97831A#97831A

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

Color values

HEX#97831A
RGBrgb(151, 131, 26)
HSLhsl(50, 71%, 35%)
HSVhsv(50, 83%, 59%)
CMYKcmyk(0%, 13.2%, 82.8%, 40.8%)
CIE-LABlab(54.96, -3.26, 54.31)
CIE-LCHlch(54.96, 54.41, 93.43°)
OKLaboklab(61.06% -0.0153 0.1172)
OKLCHoklch(61.06% 0.118 97.5)
XYZxyz(21.0664, 22.8876, 4.2852)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97831A #1A2E97
analogous
#97451A #97831A #6D971A
triadic
#97831A #1A9783 #831A97
tetradic
#97831A #1A9745 #1A2E97 #971A6D
square
#97831A #1A9745 #1A2E97 #971A6D
split-complementary
#97831A #1A6D97 #451A97
monochromatic
#2F2808 #635611 #97831A #CBB023 #E0C84B

Accessibility & contrast

On white

3.77
#97831A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##97831A#FFFFFF#000000##000000
##97831A1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#A47870
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97831a;
/* rgb */ color: rgb(151, 131, 26);
/* oklch */ color: oklch(61.1% 0.118 97.5);
Tailwind
colors: {
  custom: {
    50: '#baa661',
    500: '#97831a',
    950: '#000000',
  },
}
SCSS
$custom: #97831a;
$custom-light: #baa661;
$custom-dark: #000000;
JSON
{
  "hex": "#97831a",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 50.4,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61062,
    "c": 0.11816,
    "h": 97.5
  },
  "luminance": 0.22886
}

Semantic roles & 50–950 ramp

primary
#97831A
secondary
#4B5EC2
accent
#57ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #97831A

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

Preview Lab → · Contrast checker → · Palette generator →

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