#8D2ED7#8D2ED7

#8D2ED7 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 53.1% C 0.238 H 304.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8D2ED7
RGBrgb(141, 46, 215)
HSLhsl(274, 68%, 51%)
HSVhsv(274, 79%, 84%)
CMYKcmyk(34.4%, 78.6%, 0%, 15.7%)
CIE-LABlab(42.04, 66.86, -68.70)
CIE-LCHlch(42.04, 95.86, 314.22°)
OKLaboklab(53.08% 0.1355 -0.1958)
OKLCHoklch(53.08% 0.238 304.7)
XYZxyz(24.2244, 12.5231, 65.4178)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2ED7 #78D72E
analogous
#382ED7 #8D2ED7 #D72ECC
triadic
#8D2ED7 #D78D2E #2ED78D
tetradic
#8D2ED7 #D7382E #78D72E #2ECCD7
square
#8D2ED7 #D7382E #78D72E #2ECCD7
split-complementary
#8D2ED7 #CCD72E #2ED738
monochromatic
#4B1674 #6C20A8 #8D2ED7 #A961E1 #C595EB

Accessibility & contrast

On white

5.99
#8D2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8D2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D2ED7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2ED7#FFFFFF#000000##FFFFFF
##8D2ED71.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0063D4
Tritanopia (blue-blind)
#7F5B83
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d2ed7;
/* rgb */ color: rgb(141, 46, 215);
/* oklch */ color: oklch(53.1% 0.238 304.7);
Tailwind
colors: {
  custom: {
    50: '#b572e4',
    500: '#8d2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8d2ed7;
$custom-light: #b572e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2ed7",
  "rgb": {
    "r": 141,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 273.728,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53078,
    "c": 0.23813,
    "h": 304.7
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#8D2ED7
secondary
#ACD68B
accent
#EB3D89
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8D2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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