#8D8D21#8D8D21

#8D8D21 is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.4% C 0.124 H 109.5°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8D8D21
RGBrgb(141, 141, 33)
HSLhsl(60, 62%, 34%)
HSVhsv(60, 77%, 55%)
CMYKcmyk(0%, 0%, 76.6%, 44.7%)
CIE-LABlab(56.90, -13.00, 53.44)
CIE-LCHlch(56.90, 54.99, 103.67°)
OKLaboklab(62.4% -0.0415 0.1172)
OKLCHoklch(62.4% 0.124 109.5)
XYZxyz(20.7847, 24.8229, 5.1350)
Luminance0.2482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8D21 #21218D
analogous
#8D5721 #8D8D21 #578D21
triadic
#8D8D21 #218D8D #8D218D
tetradic
#8D8D21 #218D57 #21218D #8D2157
square
#8D8D21 #218D57 #21218D #8D2157
split-complementary
#8D8D21 #21578D #57218D
monochromatic
#2A2A0A #5B5B15 #8D8D21 #BFBF2D #D6D652

Accessibility & contrast

On white

3.52
#8D8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8D8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8D21
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8D21#FFFFFF#000000##000000
##8D8D211.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#978479
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8d8d21;
/* rgb */ color: rgb(141, 141, 33);
/* oklch */ color: oklch(62.4% 0.124 109.5);
Tailwind
colors: {
  custom: {
    50: '#b2ae66',
    500: '#8d8d21',
    950: '#000000',
  },
}
SCSS
$custom: #8d8d21;
$custom-light: #b2ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8d21",
  "rgb": {
    "r": 141,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 60,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62401,
    "c": 0.12429,
    "h": 109.5
  },
  "luminance": 0.24822
}

Semantic roles & 50–950 ramp

primary
#8D8D21
secondary
#5050BA
accent
#43E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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