#8D9C21#8D9C21

#8D9C21 is a light, vivid yellow. Relative luminance 0.295; OKLCH L 65.9% C 0.141 H 116.7°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8D9C21
RGBrgb(141, 156, 33)
HSLhsl(67, 65%, 37%)
HSVhsv(67, 79%, 61%)
CMYKcmyk(9.6%, 0%, 78.8%, 38.8%)
CIE-LABlab(61.26, -20.79, 57.43)
CIE-LCHlch(61.26, 61.08, 109.90°)
OKLaboklab(65.9% -0.0631 0.1257)
OKLCHoklch(65.9% 0.141 116.7)
XYZxyz(23.1481, 29.5498, 5.9228)
Luminance0.2955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9C21 #30219C
analogous
#9C6E21 #8D9C21 #509C21
triadic
#8D9C21 #218D9C #9C218D
tetradic
#8D9C21 #219C6E #30219C #9C2150
square
#8D9C21 #219C6E #30219C #9C2150
split-complementary
#8D9C21 #21509C #6E219C
monochromatic
#32370C #5F6916 #8D9C21 #BBCF2C #CDDC5B

Accessibility & contrast

On white

3.04
#8D9C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#8D9C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9C21
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9C21#FFFFFF#000000##000000
##8D9C211.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)
#A79300
Deuteranopia (green-blind)
#A6952D
Tritanopia (blue-blind)
#969385
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8d9c21;
/* rgb */ color: rgb(141, 156, 33);
/* oklch */ color: oklch(65.9% 0.141 116.7);
Tailwind
colors: {
  custom: {
    50: '#b2b968',
    500: '#8d9c21',
    950: '#000000',
  },
}
SCSS
$custom: #8d9c21;
$custom-light: #b2b968;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9c21",
  "rgb": {
    "r": 141,
    "g": 156,
    "b": 33
  },
  "hsl": {
    "h": 67.317,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.65896,
    "c": 0.14061,
    "h": 116.7
  },
  "luminance": 0.29549
}

Semantic roles & 50–950 ramp

primary
#8D9C21
secondary
#6558C1
accent
#40E854
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8D9C21

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

Preview Lab → · Contrast checker → · Palette generator →

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