#9E8E18#9E8E18

#9E8E18 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.127 H 100.8°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9E8E18
RGBrgb(158, 142, 24)
HSLhsl(53, 74%, 36%)
HSVhsv(53, 85%, 62%)
CMYKcmyk(0%, 10.1%, 84.8%, 38%)
CIE-LABlab(58.68, -6.13, 58.34)
CIE-LCHlch(58.68, 58.66, 96.00°)
OKLaboklab(64.17% -0.0239 0.1251)
OKLCHoklch(64.17% 0.127 100.8)
XYZxyz(23.9396, 26.6822, 4.7532)
Luminance0.2668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E18 #18289E
analogous
#9E4B18 #9E8E18 #6B9E18
triadic
#9E8E18 #189E8E #8E189E
tetradic
#9E8E18 #189E4B #18289E #9E186B
square
#9E8E18 #189E4B #18289E #9E186B
split-complementary
#9E8E18 #186B9E #4B189E
monochromatic
#342F08 #695E10 #9E8E18 #D3BE20 #E4D24D

Accessibility & contrast

On white

3.31
#9E8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9E8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E18
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E18#FFFFFF#000000##000000
##9E8E181.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#A19023
Tritanopia (blue-blind)
#AB8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e18;
/* rgb */ color: rgb(158, 142, 24);
/* oklch */ color: oklch(64.2% 0.127 100.8);
Tailwind
colors: {
  custom: {
    50: '#bfae62',
    500: '#9e8e18',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e18;
$custom-light: #bfae62;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e18",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 52.836,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64171,
    "c": 0.12741,
    "h": 100.8
  },
  "luminance": 0.26681
}

Semantic roles & 50–950 ramp

primary
#9E8E18
secondary
#4C5BC6
accent
#4EF038
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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