#9E8F28#9E8F28

#9E8F28 is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.120 H 100.7°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9E8F28
RGBrgb(158, 143, 40)
HSLhsl(52, 60%, 39%)
HSVhsv(52, 75%, 62%)
CMYKcmyk(0%, 9.5%, 74.7%, 38%)
CIE-LABlab(59.04, -6.07, 53.47)
CIE-LCHlch(59.04, 53.82, 96.47°)
OKLaboklab(64.48% -0.0223 0.1179)
OKLCHoklch(64.48% 0.12 100.7)
XYZxyz(24.3072, 27.0683, 5.9514)
Luminance0.2707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F28 #28379E
analogous
#9E5428 #9E8F28 #729E28
triadic
#9E8F28 #289E8F #8F289E
tetradic
#9E8F28 #289E54 #28379E #9E2872
square
#9E8F28 #289E54 #28379E #9E2872
split-complementary
#9E8F28 #28729E #54289E
monochromatic
#3C370F #6D631C #9E8F28 #CCB937 #D9CA68

Accessibility & contrast

On white

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

On black

6.41
#9E8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8F28
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8F28#FFFFFF#000000##000000
##9E8F281.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e8f28;
/* rgb */ color: rgb(158, 143, 40);
/* oklch */ color: oklch(64.5% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#beaf6a',
    500: '#9e8f28',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f28;
$custom-light: #beaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f28",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 52.373,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64482,
    "c": 0.12,
    "h": 100.7
  },
  "luminance": 0.27067
}

Semantic roles & 50–950 ramp

primary
#9E8F28
secondary
#636FBF
accent
#59E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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