#9E8F2B#9E8F2B

#9E8F2B is a light, moderate yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.118 H 100.5°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9E8F2B
RGBrgb(158, 143, 43)
HSLhsl(52, 57%, 39%)
HSVhsv(52, 73%, 62%)
CMYKcmyk(0%, 9.5%, 72.8%, 38%)
CIE-LABlab(59.06, -5.92, 52.34)
CIE-LCHlch(59.06, 52.67, 96.45°)
OKLaboklab(64.5% -0.0216 0.1161)
OKLCHoklch(64.5% 0.118 100.5)
XYZxyz(24.3602, 27.0896, 6.2307)
Luminance0.2709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F2B #2B3A9E
analogous
#9E562B #9E8F2B #749E2B
triadic
#9E8F2B #2B9E8F #8F2B9E
tetradic
#9E8F2B #2B9E56 #2B3A9E #9E2B74
square
#9E8F2B #2B9E56 #2B3A9E #9E2B74
split-complementary
#9E8F2B #2B749E #562B9E
monochromatic
#3E3811 #6E631E #9E8F2B #CAB73C #D7C96C

Accessibility & contrast

On white

3.27
#9E8F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9E8F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8F2B
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8F2B#FFFFFF#000000##000000
##9E8F2B1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B1B
Deuteranopia (green-blind)
#A19131
Tritanopia (blue-blind)
#AA847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9e8f2b;
/* rgb */ color: rgb(158, 143, 43);
/* oklch */ color: oklch(64.5% 0.118 100.5);
Tailwind
colors: {
  custom: {
    50: '#beaf6b',
    500: '#9e8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f2b;
$custom-light: #beaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f2b",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 52.174,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64503,
    "c": 0.11808,
    "h": 100.5
  },
  "luminance": 0.27088
}

Semantic roles & 50–950 ramp

primary
#9E8F2B
secondary
#6772BE
accent
#5BE047
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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