#9E9820#9E9820

#9E9820 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.4% C 0.132 H 106.5°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9E9820
RGBrgb(158, 152, 32)
HSLhsl(57, 66%, 37%)
HSVhsv(57, 80%, 62%)
CMYKcmyk(0%, 3.8%, 79.7%, 38%)
CIE-LABlab(61.51, -11.22, 58.49)
CIE-LCHlch(61.51, 59.55, 100.86°)
OKLaboklab(66.43% -0.0376 0.127)
OKLCHoklch(66.43% 0.132 106.5)
XYZxyz(25.5906, 29.8308, 5.7762)
Luminance0.2983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9820 #20269E
analogous
#9E5920 #9E9820 #659E20
triadic
#9E9820 #209E98 #98209E
tetradic
#9E9820 #209E59 #20269E #9E2065
square
#9E9820 #209E59 #20269E #9E2065
split-complementary
#9E9820 #20659E #59209E
monochromatic
#38360B #6B6716 #9E9820 #D1C92A #DED75B

Accessibility & contrast

On white

3.01
#9E9820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#9E9820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9820
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9820#FFFFFF#000000##000000
##9E98201.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e9820;
/* rgb */ color: rgb(158, 152, 32);
/* oklch */ color: oklch(66.4% 0.132 106.5);
Tailwind
colors: {
  custom: {
    50: '#beb667',
    500: '#9e9820',
    950: '#000000',
  },
}
SCSS
$custom: #9e9820;
$custom-light: #beb667;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9820",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 57.143,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66433,
    "c": 0.13247,
    "h": 106.5
  },
  "luminance": 0.2983
}

Semantic roles & 50–950 ramp

primary
#9E9820
secondary
#585DC2
accent
#47E93F
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9E9820

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

Preview Lab → · Contrast checker → · Palette generator →

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