#9E791B#9E791B

#9E791B is a mid, moderate orange. Relative luminance 0.210; OKLCH L 59.7% C 0.114 H 85.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9E791B
RGBrgb(158, 121, 27)
HSLhsl(43, 71%, 36%)
HSVhsv(43, 83%, 62%)
CMYKcmyk(0%, 23.4%, 82.9%, 38%)
CIE-LABlab(52.98, 5.62, 52.54)
CIE-LCHlch(52.98, 52.84, 83.90°)
OKLaboklab(59.67% 0.0096 0.1131)
OKLCHoklch(59.67% 0.114 85.1)
XYZxyz(21.1372, 21.0245, 3.9816)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E791B #1B409E
analogous
#9E371B #9E791B #829E1B
triadic
#9E791B #1B9E79 #791B9E
tetradic
#9E791B #1B9E37 #1B409E #9E1B82
square
#9E791B #1B9E37 #1B409E #9E1B82
split-complementary
#9E791B #1B829E #371B9E
monochromatic
#352909 #6A5112 #9E791B #D2A124 #E1B952

Accessibility & contrast

On white

4.03
#9E791B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9E791B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E791B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E791B#FFFFFF#000000##000000
##9E791B1.004.035.205.20
#FFFFFF4.031.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897903
Deuteranopia (green-blind)
#928220
Tritanopia (blue-blind)
#AC6D68
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9e791b;
/* rgb */ color: rgb(158, 121, 27);
/* oklch */ color: oklch(59.7% 0.114 85.1);
Tailwind
colors: {
  custom: {
    50: '#bf9f61',
    500: '#9e791b',
    950: '#000000',
  },
}
SCSS
$custom: #9e791b;
$custom-light: #bf9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#9e791b",
  "rgb": {
    "r": 158,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 43.053,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5967,
    "c": 0.11355,
    "h": 85.1
  },
  "luminance": 0.21023
}

Semantic roles & 50–950 ramp

primary
#9E791B
secondary
#5171C4
accent
#6DEE3A
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E05
muted
#827E7A

Preview Lab

Preview with #9E791B

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

Preview Lab → · Contrast checker → · Palette generator →

#9E791B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva