#96791F#96791F

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

Color values

HEX#96791F
RGBrgb(150, 121, 31)
HSLhsl(45, 66%, 35%)
HSVhsv(45, 79%, 59%)
CMYKcmyk(0%, 19.3%, 79.3%, 41.2%)
CIE-LABlab(52.13, 2.06, 50.04)
CIE-LCHlch(52.13, 50.09, 87.64°)
OKLaboklab(58.81% 0.0003 0.1091)
OKLCHoklch(58.81% 0.109 89.8)
XYZxyz(19.6635, 20.2590, 4.1707)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96791F #1F3C96
analogous
#963D1F #96791F #77961F
triadic
#96791F #1F9679 #791F96
tetradic
#96791F #1F963D #1F3C96 #961F77
square
#96791F #1F963D #1F3C96 #961F77
split-complementary
#96791F #1F7796 #3D1F96
monochromatic
#31270A #635015 #96791F #C9A229 #DCBB54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##96791F#FFFFFF#000000##000000
##96791F1.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)
#88780D
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#A36E68
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #96791f;
/* rgb */ color: rgb(150, 121, 31);
/* oklch */ color: oklch(58.8% 0.109 89.8);
Tailwind
colors: {
  custom: {
    50: '#b99f62',
    500: '#96791f',
    950: '#000000',
  },
}
SCSS
$custom: #96791f;
$custom-light: #b99f62;
$custom-dark: #000000;
JSON
{
  "hex": "#96791f",
  "rgb": {
    "r": 150,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 45.378,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58812,
    "c": 0.10911,
    "h": 89.8
  },
  "luminance": 0.20258
}

Semantic roles & 50–950 ramp

primary
#96791F
secondary
#526CBF
accent
#68E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #96791F

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

Preview Lab → · Contrast checker → · Palette generator →

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