#9E8D21#9E8D21

#9E8D21 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.122 H 99.8°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9E8D21
RGBrgb(158, 141, 33)
HSLhsl(52, 65%, 37%)
HSVhsv(52, 79%, 62%)
CMYKcmyk(0%, 10.8%, 79.1%, 38%)
CIE-LABlab(58.44, -5.28, 55.41)
CIE-LCHlch(58.44, 55.66, 95.44°)
OKLaboklab(64% -0.0208 0.1206)
OKLCHoklch(64% 0.122 99.8)
XYZxyz(23.9011, 26.4298, 5.2811)
Luminance0.2643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D21 #21329E
analogous
#9E4F21 #9E8D21 #719E21
triadic
#9E8D21 #219E8D #8D219E
tetradic
#9E8D21 #219E4F #21329E #9E2171
square
#9E8D21 #219E4F #21329E #9E2171
split-complementary
#9E8D21 #21719E #4F219E
monochromatic
#39330C #6B6016 #9E8D21 #D1BA2C #DDCC5C

Accessibility & contrast

On white

3.34
#9E8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9E8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D21
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D21#FFFFFF#000000##000000
##9E8D211.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8906
Deuteranopia (green-blind)
#A08F29
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9e8d21;
/* rgb */ color: rgb(158, 141, 33);
/* oklch */ color: oklch(64.0% 0.122 99.8);
Tailwind
colors: {
  custom: {
    50: '#bfae66',
    500: '#9e8d21',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d21;
$custom-light: #bfae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d21",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 51.84,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63997,
    "c": 0.12242,
    "h": 99.8
  },
  "luminance": 0.26429
}

Semantic roles & 50–950 ramp

primary
#9E8D21
secondary
#5968C1
accent
#56E83F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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