#97821B#97821B

#97821B is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.8% C 0.117 H 96.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#97821B
RGBrgb(151, 130, 27)
HSLhsl(50, 70%, 35%)
HSVhsv(50, 82%, 59%)
CMYKcmyk(0%, 13.9%, 82.1%, 40.8%)
CIE-LABlab(54.68, -2.67, 53.76)
CIE-LCHlch(54.68, 53.82, 92.84°)
OKLaboklab(60.85% -0.0136 0.1162)
OKLCHoklch(60.85% 0.117 96.7)
XYZxyz(20.9441, 22.6249, 4.3006)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97821B #1B3097
analogous
#97441B #97821B #6E971B
triadic
#97821B #1B9782 #821B97
tetradic
#97821B #1B9744 #1B3097 #971B6E
square
#97821B #1B9744 #1B3097 #971B6E
split-complementary
#97821B #1B6E97 #441B97
monochromatic
#2F2908 #635512 #97821B #CBAF24 #DFC64D

Accessibility & contrast

On white

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

On black

5.52
#97821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97821B
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97821B#FFFFFF#000000##000000
##97821B1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #97821b;
/* rgb */ color: rgb(151, 130, 27);
/* oklch */ color: oklch(60.8% 0.117 96.7);
Tailwind
colors: {
  custom: {
    50: '#baa562',
    500: '#97821b',
    950: '#000000',
  },
}
SCSS
$custom: #97821b;
$custom-light: #baa562;
$custom-dark: #000000;
JSON
{
  "hex": "#97821b",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 49.839,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60848,
    "c": 0.11696,
    "h": 96.7
  },
  "luminance": 0.22624
}

Semantic roles & 50–950 ramp

primary
#97821B
secondary
#4C60C1
accent
#59EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #97821B

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

Preview Lab → · Contrast checker → · Palette generator →

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