#96821F#96821F

#96821F is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.8% C 0.115 H 97.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#96821F
RGBrgb(150, 130, 31)
HSLhsl(50, 66%, 35%)
HSVhsv(50, 79%, 59%)
CMYKcmyk(0%, 13.3%, 79.3%, 41.2%)
CIE-LABlab(54.60, -2.98, 52.32)
CIE-LCHlch(54.60, 52.40, 93.26°)
OKLaboklab(60.77% -0.0141 0.114)
OKLCHoklch(60.77% 0.115 97)
XYZxyz(20.8087, 22.5493, 4.5525)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96821F #1F3396
analogous
#96461F #96821F #6E961F
triadic
#96821F #1F9682 #821F96
tetradic
#96821F #1F9646 #1F3396 #961F6E
square
#96821F #1F9646 #1F3396 #961F6E
split-complementary
#96821F #1F6E96 #461F96
monochromatic
#312A0A #635615 #96821F #C9AE29 #DCC554

Accessibility & contrast

On white

3.81
#96821F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#96821F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #96821F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##96821F#FFFFFF#000000##000000
##96821F1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #96821f;
/* rgb */ color: rgb(150, 130, 31);
/* oklch */ color: oklch(60.8% 0.115 97.0);
Tailwind
colors: {
  custom: {
    50: '#b9a563',
    500: '#96821f',
    950: '#000000',
  },
}
SCSS
$custom: #96821f;
$custom-light: #b9a563;
$custom-dark: #000000;
JSON
{
  "hex": "#96821f",
  "rgb": {
    "r": 150,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 49.916,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60769,
    "c": 0.11483,
    "h": 97
  },
  "luminance": 0.22548
}

Semantic roles & 50–950 ramp

primary
#96821F
secondary
#5264BF
accent
#5CE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #96821F

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

Preview Lab → · Contrast checker → · Palette generator →

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