#97821D#97821D

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

Color values

HEX#97821D
RGBrgb(151, 130, 29)
HSLhsl(50, 68%, 35%)
HSVhsv(50, 81%, 59%)
CMYKcmyk(0%, 13.9%, 80.8%, 40.8%)
CIE-LABlab(54.69, -2.60, 53.12)
CIE-LCHlch(54.69, 53.18, 92.80°)
OKLaboklab(60.86% -0.0132 0.1152)
OKLCHoklch(60.86% 0.116 96.5)
XYZxyz(20.9680, 22.6344, 4.4266)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97821D #1D3297
analogous
#97451D #97821D #6F971D
triadic
#97821D #1D9782 #821D97
tetradic
#97821D #1D9745 #1D3297 #971D6F
square
#97821D #1D9745 #1D3297 #971D6F
split-complementary
#97821D #1D6F97 #451D97
monochromatic
#302A09 #645613 #97821D #CAAE27 #DEC551

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97821D#FFFFFF#000000##000000
##97821D1.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)
#907F03
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#A4776F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #97821d;
/* rgb */ color: rgb(151, 130, 29);
/* oklch */ color: oklch(60.9% 0.116 96.5);
Tailwind
colors: {
  custom: {
    50: '#baa563',
    500: '#97821d',
    950: '#000000',
  },
}
SCSS
$custom: #97821d;
$custom-light: #baa563;
$custom-dark: #000000;
JSON
{
  "hex": "#97821d",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 49.672,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60859,
    "c": 0.11596,
    "h": 96.5
  },
  "luminance": 0.22633
}

Semantic roles & 50–950 ramp

primary
#97821D
secondary
#4F63C0
accent
#5BEB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97821D

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

Preview Lab → · Contrast checker → · Palette generator →

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