#9E7E1A#9E7E1A

#9E7E1A is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.116 H 89.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9E7E1A
RGBrgb(158, 126, 26)
HSLhsl(45, 72%, 36%)
HSVhsv(45, 84%, 62%)
CMYKcmyk(0%, 20.3%, 83.5%, 38%)
CIE-LABlab(54.31, 2.77, 54.03)
CIE-LCHlch(54.31, 54.10, 87.07°)
OKLaboklab(60.72% 0.0014 0.1161)
OKLCHoklch(60.72% 0.116 89.3)
XYZxyz(21.7492, 22.2669, 4.1295)
Luminance0.2226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7E1A #1A3A9E
analogous
#9E3C1A #9E7E1A #7C9E1A
triadic
#9E7E1A #1A9E7E #7E1A9E
tetradic
#9E7E1A #1A9E3C #1A3A9E #9E1A7C
square
#9E7E1A #1A9E3C #1A3A9E #9E1A7C
split-complementary
#9E7E1A #1A7C9E #3C1A9E
monochromatic
#352A09 #695411 #9E7E1A #D3A823 #E2BF50

Accessibility & contrast

On white

3.85
#9E7E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9E7E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7E1A
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7E1A#FFFFFF#000000##000000
##9E7E1A1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#AC726C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9e7e1a;
/* rgb */ color: rgb(158, 126, 26);
/* oklch */ color: oklch(60.7% 0.116 89.3);
Tailwind
colors: {
  custom: {
    50: '#bfa361',
    500: '#9e7e1a',
    950: '#000000',
  },
}
SCSS
$custom: #9e7e1a;
$custom-light: #bfa361;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7e1a",
  "rgb": {
    "r": 158,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 45.455,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60717,
    "c": 0.11615,
    "h": 89.3
  },
  "luminance": 0.22265
}

Semantic roles & 50–950 ramp

primary
#9E7E1A
secondary
#4F6CC5
accent
#65EE39
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9E7E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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