#96791B#96791B

#96791B is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.8% C 0.111 H 90.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#96791B
RGBrgb(150, 121, 27)
HSLhsl(46, 69%, 35%)
HSVhsv(46, 82%, 59%)
CMYKcmyk(0%, 19.3%, 82%, 41.2%)
CIE-LABlab(52.11, 1.91, 51.44)
CIE-LCHlch(52.11, 51.48, 87.88°)
OKLaboklab(58.79% -0.0006 0.1112)
OKLCHoklch(58.79% 0.111 90.3)
XYZxyz(19.6141, 20.2392, 3.9102)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96791B #1B3896
analogous
#963C1B #96791B #75961B
triadic
#96791B #1B9679 #791B96
tetradic
#96791B #1B963C #1B3896 #961B75
square
#96791B #1B963C #1B3896 #961B75
split-complementary
#96791B #1B7596 #3C1B96
monochromatic
#2E2508 #624F12 #96791B #CAA324 #DFBC4D

Accessibility & contrast

On white

4.16
#96791B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#96791B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #96791B
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##96791B#FFFFFF#000000##000000
##96791B1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#887804
Deuteranopia (green-blind)
#8F8021
Tritanopia (blue-blind)
#A36E67
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #96791b;
/* rgb */ color: rgb(150, 121, 27);
/* oklch */ color: oklch(58.8% 0.111 90.3);
Tailwind
colors: {
  custom: {
    50: '#b99f60',
    500: '#96791b',
    950: '#000000',
  },
}
SCSS
$custom: #96791b;
$custom-light: #b99f60;
$custom-dark: #000000;
JSON
{
  "hex": "#96791b",
  "rgb": {
    "r": 150,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 45.854,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58788,
    "c": 0.11122,
    "h": 90.3
  },
  "luminance": 0.20238
}

Semantic roles & 50–950 ramp

primary
#96791B
secondary
#4C67C1
accent
#65EC3B
background
#FBF9F5
surface
#F7F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #96791B

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

Preview Lab → · Contrast checker → · Palette generator →

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