#8D21B2#8D21B2

#8D21B2 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.217 H 315.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8D21B2
RGBrgb(141, 33, 178)
HSLhsl(285, 69%, 41%)
HSVhsv(285, 81%, 70%)
CMYKcmyk(20.8%, 81.5%, 0%, 30.2%)
CIE-LABlab(37.78, 63.40, -54.01)
CIE-LCHlch(37.78, 83.29, 319.57°)
OKLaboklab(49.22% 0.1539 -0.1526)
OKLCHoklch(49.22% 0.217 315.2)
XYZxyz(19.5629, 9.9655, 43.0039)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21B2 #46B221
analogous
#4521B2 #8D21B2 #B2218F
triadic
#8D21B2 #B28D21 #21B28D
tetradic
#8D21B2 #B24521 #46B221 #218FB2
square
#8D21B2 #B24521 #46B221 #218FB2
split-complementary
#8D21B2 #8FB221 #21B245
monochromatic
#3B0E4B #64177E #8D21B2 #B036DA #C46AE3

Accessibility & contrast

On white

7.02
#8D21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8D21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D21B2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21B2#FFFFFF#000000##FFFFFF
##8D21B21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#195CAF
Tritanopia (blue-blind)
#8A456B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d21b2;
/* rgb */ color: rgb(141, 33, 178);
/* oklch */ color: oklch(49.2% 0.217 315.2);
Tailwind
colors: {
  custom: {
    50: '#b36bca',
    500: '#8d21b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d21b2;
$custom-light: #b36bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21b2",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 284.69,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49224,
    "c": 0.21671,
    "h": 315.2
  },
  "luminance": 0.09965
}

Semantic roles & 50–950 ramp

primary
#8D21B2
secondary
#7FC966
accent
#EC3C69
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120713
muted
#817A82

Preview Lab

Preview with #8D21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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