#97821A#97821A

#97821A 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#97821A
RGBrgb(151, 130, 26)
HSLhsl(50, 71%, 35%)
HSVhsv(50, 83%, 59%)
CMYKcmyk(0%, 13.9%, 82.8%, 40.8%)
CIE-LABlab(54.68, -2.70, 54.07)
CIE-LCHlch(54.68, 54.13, 92.86°)
OKLaboklab(60.84% -0.0138 0.1166)
OKLCHoklch(60.84% 0.117 96.7)
XYZxyz(20.9327, 22.6203, 4.2407)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97821A #1A2F97
analogous
#97441A #97821A #6E971A
triadic
#97821A #1A9782 #821A97
tetradic
#97821A #1A9744 #1A2F97 #971A6E
square
#97821A #1A9744 #1A2F97 #971A6E
split-complementary
#97821A #1A6E97 #441A97
monochromatic
#2F2808 #635511 #97821A #CBAF23 #E0C74B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97821A#FFFFFF#000000##000000
##97821A1.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)
#968622
Tritanopia (blue-blind)
#A4776F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #97821a;
/* rgb */ color: rgb(151, 130, 26);
/* oklch */ color: oklch(60.8% 0.117 96.7);
Tailwind
colors: {
  custom: {
    50: '#baa561',
    500: '#97821a',
    950: '#000000',
  },
}
SCSS
$custom: #97821a;
$custom-light: #baa561;
$custom-dark: #000000;
JSON
{
  "hex": "#97821a",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 26
  },
  "hsl": {
    "h": 49.92,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60842,
    "c": 0.11744,
    "h": 96.7
  },
  "luminance": 0.22619
}

Semantic roles & 50–950 ramp

primary
#97821A
secondary
#4B5FC2
accent
#58ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #97821A

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

Preview Lab → · Contrast checker → · Palette generator →

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