#97821F#97821F

#97821F is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.9% C 0.115 H 96.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#97821F
RGBrgb(151, 130, 31)
HSLhsl(50, 66%, 36%)
HSVhsv(50, 79%, 59%)
CMYKcmyk(0%, 13.9%, 79.5%, 40.8%)
CIE-LABlab(54.70, -2.52, 52.44)
CIE-LCHlch(54.70, 52.51, 92.75°)
OKLaboklab(60.87% -0.0128 0.1142)
OKLCHoklch(60.87% 0.115 96.4)
XYZxyz(20.9936, 22.6447, 4.5611)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97821F #1F3497
analogous
#97461F #97821F #70971F
triadic
#97821F #1F9782 #821F97
tetradic
#97821F #1F9746 #1F3497 #971F70
square
#97821F #1F9746 #1F3497 #971F70
split-complementary
#97821F #1F7097 #461F97
monochromatic
#312B0A #645615 #97821F #CAAE29 #DCC454

Accessibility & contrast

On white

3.80
#97821F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#97821F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97821F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97821F#FFFFFF#000000##000000
##97821F1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#958626
Tritanopia (blue-blind)
#A4776F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #97821f;
/* rgb */ color: rgb(151, 130, 31);
/* oklch */ color: oklch(60.9% 0.115 96.4);
Tailwind
colors: {
  custom: {
    50: '#b9a564',
    500: '#97821f',
    950: '#000000',
  },
}
SCSS
$custom: #97821f;
$custom-light: #b9a564;
$custom-dark: #000000;
JSON
{
  "hex": "#97821f",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 49.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60871,
    "c": 0.11492,
    "h": 96.4
  },
  "luminance": 0.22644
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #97821F

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

Preview Lab → · Contrast checker → · Palette generator →

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