#9E8D1B#9E8D1B

#9E8D1B is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.125 H 100.1°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9E8D1B
RGBrgb(158, 141, 27)
HSLhsl(52, 71%, 36%)
HSVhsv(52, 83%, 62%)
CMYKcmyk(0%, 10.8%, 82.9%, 38%)
CIE-LABlab(58.41, -5.49, 57.27)
CIE-LCHlch(58.41, 57.53, 95.48°)
OKLaboklab(63.97% -0.0219 0.1234)
OKLCHoklch(63.97% 0.125 100.1)
XYZxyz(23.8245, 26.3992, 4.8773)
Luminance0.2640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D1B #1B2C9E
analogous
#9E4C1B #9E8D1B #6E9E1B
triadic
#9E8D1B #1B9E8D #8D1B9E
tetradic
#9E8D1B #1B9E4C #1B2C9E #9E1B6E
square
#9E8D1B #1B9E4C #1B2C9E #9E1B6E
split-complementary
#9E8D1B #1B6E9E #4C1B9E
monochromatic
#353009 #6A5E12 #9E8D1B #D2BC24 #E1CF52

Accessibility & contrast

On white

3.34
#9E8D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#9E8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D1B
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D1B#FFFFFF#000000##000000
##9E8D1B1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#A08F24
Tritanopia (blue-blind)
#AB8278
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9e8d1b;
/* rgb */ color: rgb(158, 141, 27);
/* oklch */ color: oklch(64.0% 0.125 100.1);
Tailwind
colors: {
  custom: {
    50: '#bfad63',
    500: '#9e8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d1b;
$custom-light: #bfad63;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d1b",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 52.214,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63965,
    "c": 0.12535,
    "h": 100.1
  },
  "luminance": 0.26398
}

Semantic roles & 50–950 ramp

primary
#9E8D1B
secondary
#5160C4
accent
#51EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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