#8D9D21#8D9D21

#8D9D21 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.1% C 0.142 H 117.1°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8D9D21
RGBrgb(141, 157, 33)
HSLhsl(68, 65%, 37%)
HSVhsv(68, 79%, 62%)
CMYKcmyk(10.2%, 0%, 79%, 38.4%)
CIE-LABlab(61.56, -21.29, 57.70)
CIE-LCHlch(61.56, 61.50, 110.26°)
OKLaboklab(66.13% -0.0645 0.1262)
OKLCHoklch(66.13% 0.142 117.1)
XYZxyz(23.3166, 29.8868, 5.9790)
Luminance0.2989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9D21 #31219D
analogous
#9D6F21 #8D9D21 #4F9D21
triadic
#8D9D21 #218D9D #9D218D
tetradic
#8D9D21 #219D6F #31219D #9D214F
square
#8D9D21 #219D6F #31219D #9D214F
split-complementary
#8D9D21 #214F9D #6F219D
monochromatic
#32380C #606A16 #8D9D21 #BAD02C #CCDD5C

Accessibility & contrast

On white

3.01
#8D9D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#8D9D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9D21
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9D21#FFFFFF#000000##000000
##8D9D211.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#A7952D
Tritanopia (blue-blind)
#969486
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8d9d21;
/* rgb */ color: rgb(141, 157, 33);
/* oklch */ color: oklch(66.1% 0.142 117.1);
Tailwind
colors: {
  custom: {
    50: '#b2b968',
    500: '#8d9d21',
    950: '#000000',
  },
}
SCSS
$custom: #8d9d21;
$custom-light: #b2b968;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9d21",
  "rgb": {
    "r": 141,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 67.742,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66131,
    "c": 0.14175,
    "h": 117.1
  },
  "luminance": 0.29886
}

Semantic roles & 50–950 ramp

primary
#8D9D21
secondary
#6659C1
accent
#40E855
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8D9D21

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

Preview Lab → · Contrast checker → · Palette generator →

#8D9D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva