#9E8B1B#9E8B1B

#9E8B1B is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.124 H 98.8°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9E8B1B
RGBrgb(158, 139, 27)
HSLhsl(51, 71%, 36%)
HSVhsv(51, 83%, 62%)
CMYKcmyk(0%, 12%, 82.9%, 38%)
CIE-LABlab(57.86, -4.40, 56.79)
CIE-LCHlch(57.86, 56.96, 94.43°)
OKLaboklab(63.53% -0.0188 0.1224)
OKLCHoklch(63.53% 0.124 98.8)
XYZxyz(23.5322, 25.8147, 4.7799)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B1B #1B2E9E
analogous
#9E4A1B #9E8B1B #709E1B
triadic
#9E8B1B #1B9E8B #8B1B9E
tetradic
#9E8B1B #1B9E4A #1B2E9E #9E1B70
square
#9E8B1B #1B9E4A #1B2E9E #9E1B70
split-complementary
#9E8B1B #1B709E #4A1B9E
monochromatic
#352F09 #6A5D12 #9E8B1B #D2B924 #E1CD52

Accessibility & contrast

On white

3.41
#9E8B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9E8B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B1B
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B1B#FFFFFF#000000##000000
##9E8B1B1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9F8E24
Tritanopia (blue-blind)
#AB8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b1b;
/* rgb */ color: rgb(158, 139, 27);
/* oklch */ color: oklch(63.5% 0.124 98.8);
Tailwind
colors: {
  custom: {
    50: '#bfac63',
    500: '#9e8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b1b;
$custom-light: #bfac63;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b1b",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 51.298,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63526,
    "c": 0.12382,
    "h": 98.8
  },
  "luminance": 0.25813
}

Semantic roles & 50–950 ramp

primary
#9E8B1B
secondary
#5161C4
accent
#54EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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