#9E7D1A#9E7D1A

#9E7D1A is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.5% C 0.116 H 88.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9E7D1A
RGBrgb(158, 125, 26)
HSLhsl(45, 72%, 36%)
HSVhsv(45, 84%, 62%)
CMYKcmyk(0%, 20.9%, 83.5%, 38%)
CIE-LABlab(54.04, 3.33, 53.79)
CIE-LCHlch(54.04, 53.90, 86.46°)
OKLaboklab(60.51% 0.003 0.1156)
OKLCHoklch(60.51% 0.116 88.5)
XYZxyz(21.6220, 22.0124, 4.0871)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7D1A #1A3B9E
analogous
#9E3B1A #9E7D1A #7D9E1A
triadic
#9E7D1A #1A9E7D #7D1A9E
tetradic
#9E7D1A #1A9E3B #1A3B9E #9E1A7D
square
#9E7D1A #1A9E3B #1A3B9E #9E1A7D
split-complementary
#9E7D1A #1A7D9E #3B1A9E
monochromatic
#352A09 #695311 #9E7D1A #D3A723 #E2BE50

Accessibility & contrast

On white

3.89
#9E7D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#9E7D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7D1A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7D1A#FFFFFF#000000##000000
##9E7D1A1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#958520
Tritanopia (blue-blind)
#AC716B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9e7d1a;
/* rgb */ color: rgb(158, 125, 26);
/* oklch */ color: oklch(60.5% 0.116 88.5);
Tailwind
colors: {
  custom: {
    50: '#bfa261',
    500: '#9e7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #9e7d1a;
$custom-light: #bfa261;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7d1a",
  "rgb": {
    "r": 158,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 45,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60506,
    "c": 0.11568,
    "h": 88.5
  },
  "luminance": 0.22011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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