#96821B#96821B

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

Color values

HEX#96821B
RGBrgb(150, 130, 27)
HSLhsl(50, 69%, 35%)
HSVhsv(50, 82%, 59%)
CMYKcmyk(0%, 13.3%, 82%, 41.2%)
CIE-LABlab(54.58, -3.13, 53.63)
CIE-LCHlch(54.58, 53.72, 93.34°)
OKLaboklab(60.75% -0.0149 0.116)
OKLCHoklch(60.75% 0.117 97.3)
XYZxyz(20.7593, 22.5296, 4.2919)
Luminance0.2253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96821B #1B2F96
analogous
#96451B #96821B #6D961B
triadic
#96821B #1B9682 #821B96
tetradic
#96821B #1B9645 #1B2F96 #961B6D
square
#96821B #1B9645 #1B2F96 #961B6D
split-complementary
#96821B #1B6D96 #451B96
monochromatic
#2E2808 #625512 #96821B #CAAF24 #DFC74D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##96821B#FFFFFF#000000##000000
##96821B1.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)
#907F00
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#A3776F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #96821b;
/* rgb */ color: rgb(150, 130, 27);
/* oklch */ color: oklch(60.7% 0.117 97.3);
Tailwind
colors: {
  custom: {
    50: '#b9a562',
    500: '#96821b',
    950: '#000000',
  },
}
SCSS
$custom: #96821b;
$custom-light: #b9a562;
$custom-dark: #000000;
JSON
{
  "hex": "#96821b",
  "rgb": {
    "r": 150,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 50.244,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60746,
    "c": 0.11691,
    "h": 97.3
  },
  "luminance": 0.22528
}

Semantic roles & 50–950 ramp

primary
#96821B
secondary
#4C5FC1
accent
#58EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #96821B

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

Preview Lab → · Contrast checker → · Palette generator →

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