#97831C#97831C

#97831C 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#97831C
RGBrgb(151, 131, 28)
HSLhsl(50, 69%, 35%)
HSVhsv(50, 81%, 59%)
CMYKcmyk(0%, 13.2%, 81.5%, 40.8%)
CIE-LABlab(54.97, -3.19, 53.69)
CIE-LCHlch(54.97, 53.78, 93.40°)
OKLaboklab(61.07% -0.015 0.1162)
OKLCHoklch(61.07% 0.117 97.3)
XYZxyz(21.0895, 22.8969, 4.4071)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97831C #1C3097
analogous
#97461C #97831C #6D971C
triadic
#97831C #1C9783 #831C97
tetradic
#97831C #1C9746 #1C3097 #971C6D
square
#97831C #1C9746 #1C3097 #971C6D
split-complementary
#97831C #1C6D97 #461C97
monochromatic
#302909 #635612 #97831C #CBB026 #DEC74F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97831C#FFFFFF#000000##000000
##97831C1.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)
#968624
Tritanopia (blue-blind)
#A47870
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97831c;
/* rgb */ color: rgb(151, 131, 28);
/* oklch */ color: oklch(61.1% 0.117 97.3);
Tailwind
colors: {
  custom: {
    50: '#baa662',
    500: '#97831c',
    950: '#000000',
  },
}
SCSS
$custom: #97831c;
$custom-light: #baa662;
$custom-dark: #000000;
JSON
{
  "hex": "#97831c",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 50.244,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.11719,
    "h": 97.3
  },
  "luminance": 0.22896
}

Semantic roles & 50–950 ramp

primary
#97831C
secondary
#4E61C1
accent
#59EC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97831C

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

Preview Lab → · Contrast checker → · Palette generator →

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