#9E8A1B#9E8A1B

#9E8A1B is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.123 H 98.1°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#9E8A1B
RGBrgb(158, 138, 27)
HSLhsl(51, 71%, 36%)
HSVhsv(51, 83%, 62%)
CMYKcmyk(0%, 12.7%, 82.9%, 38%)
CIE-LABlab(57.58, -3.86, 56.55)
CIE-LCHlch(57.58, 56.69, 93.90°)
OKLaboklab(63.31% -0.0173 0.1219)
OKLCHoklch(63.31% 0.123 98.1)
XYZxyz(23.3881, 25.5264, 4.7319)
Luminance0.2552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A1B #1B2F9E
analogous
#9E491B #9E8A1B #719E1B
triadic
#9E8A1B #1B9E8A #8A1B9E
tetradic
#9E8A1B #1B9E49 #1B2F9E #9E1B71
square
#9E8A1B #1B9E49 #1B2F9E #9E1B71
split-complementary
#9E8A1B #1B719E #491B9E
monochromatic
#352F09 #6A5C12 #9E8A1B #D2B824 #E1CC52

Accessibility & contrast

On white

3.44
#9E8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#9E8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A1B
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A1B#FFFFFF#000000##000000
##9E8A1B1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#9E8D24
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a1b;
/* rgb */ color: rgb(158, 138, 27);
/* oklch */ color: oklch(63.3% 0.123 98.1);
Tailwind
colors: {
  custom: {
    50: '#bfab63',
    500: '#9e8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a1b;
$custom-light: #bfab63;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a1b",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 50.84,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63307,
    "c": 0.12308,
    "h": 98.1
  },
  "luminance": 0.25525
}

Semantic roles & 50–950 ramp

primary
#9E8A1B
secondary
#5162C4
accent
#56EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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