#9E9728#9E9728

#9E9728 is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.3% C 0.127 H 105.7°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9E9728
RGBrgb(158, 151, 40)
HSLhsl(56, 60%, 39%)
HSVhsv(56, 75%, 62%)
CMYKcmyk(0%, 4.4%, 74.7%, 38%)
CIE-LABlab(61.27, -10.36, 55.60)
CIE-LCHlch(61.27, 56.56, 100.56°)
OKLaboklab(66.26% -0.0344 0.1224)
OKLCHoklch(66.26% 0.127 105.7)
XYZxyz(25.5512, 29.5565, 6.3661)
Luminance0.2956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9728 #282F9E
analogous
#9E5C28 #9E9728 #6A9E28
triadic
#9E9728 #289E97 #97289E
tetradic
#9E9728 #289E5C #282F9E #9E286A
square
#9E9728 #289E5C #282F9E #9E286A
split-complementary
#9E9728 #286A9E #5C289E
monochromatic
#3C3A0F #6D681C #9E9728 #CCC337 #D9D268

Accessibility & contrast

On white

3.04
#9E9728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#9E9728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9728
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9728#FFFFFF#000000##000000
##9E97281.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49112
Deuteranopia (green-blind)
#A79630
Tritanopia (blue-blind)
#AA8D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9e9728;
/* rgb */ color: rgb(158, 151, 40);
/* oklch */ color: oklch(66.3% 0.127 105.7);
Tailwind
colors: {
  custom: {
    50: '#beb56b',
    500: '#9e9728',
    950: '#000000',
  },
}
SCSS
$custom: #9e9728;
$custom-light: #beb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9728",
  "rgb": {
    "r": 158,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 56.441,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.66257,
    "c": 0.12717,
    "h": 105.7
  },
  "luminance": 0.29556
}

Semantic roles & 50–950 ramp

primary
#9E9728
secondary
#6368BF
accent
#4EE345
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #9E9728

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

Preview Lab → · Contrast checker → · Palette generator →

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