#9E8D2B#9E8D2B

#9E8D2B is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.116 H 99.1°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9E8D2B
RGBrgb(158, 141, 43)
HSLhsl(51, 57%, 39%)
HSVhsv(51, 73%, 62%)
CMYKcmyk(0%, 10.8%, 72.8%, 38%)
CIE-LABlab(58.50, -4.83, 51.79)
CIE-LCHlch(58.50, 52.02, 95.33°)
OKLaboklab(64.06% -0.0185 0.1149)
OKLCHoklch(64.06% 0.116 99.1)
XYZxyz(24.0626, 26.4944, 6.1315)
Luminance0.2649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D2B #2B3C9E
analogous
#9E532B #9E8D2B #769E2B
triadic
#9E8D2B #2B9E8D #8D2B9E
tetradic
#9E8D2B #2B9E53 #2B3C9E #9E2B76
square
#9E8D2B #2B9E53 #2B3C9E #9E2B76
split-complementary
#9E8D2B #2B769E #532B9E
monochromatic
#3E3711 #6E621E #9E8D2B #CAB53C #D7C76C

Accessibility & contrast

On white

3.33
#9E8D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9E8D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D2B
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D2B#FFFFFF#000000##000000
##9E8D2B1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891B
Deuteranopia (green-blind)
#A08F31
Tritanopia (blue-blind)
#AA827A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d2b;
/* rgb */ color: rgb(158, 141, 43);
/* oklch */ color: oklch(64.1% 0.116 99.1);
Tailwind
colors: {
  custom: {
    50: '#beae6b',
    500: '#9e8d2b',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d2b;
$custom-light: #beae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d2b",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 51.13,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64064,
    "c": 0.11642,
    "h": 99.1
  },
  "luminance": 0.26493
}

Semantic roles & 50–950 ramp

primary
#9E8D2B
secondary
#6774BE
accent
#5EE047
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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