#8D48E2#8D48E2

#8D48E2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.6% C 0.221 H 299.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8D48E2
RGBrgb(141, 72, 226)
HSLhsl(267, 73%, 58%)
HSVhsv(267, 68%, 89%)
CMYKcmyk(37.6%, 68.1%, 0%, 11.4%)
CIE-LABlab(46.70, 58.55, -67.40)
CIE-LCHlch(46.70, 89.28, 310.98°)
OKLaboklab(56.63% 0.1101 -0.1921)
OKLCHoklch(56.63% 0.221 299.8)
XYZxyz(27.0259, 15.7882, 73.5603)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D48E2 #9DE248
analogous
#4850E2 #8D48E2 #DA48E2
triadic
#8D48E2 #E28D48 #48E28D
tetradic
#8D48E2 #E24850 #9DE248 #48E2DA
square
#8D48E2 #E24850 #9DE248 #48E2DA
split-complementary
#8D48E2 #E2DA48 #50E248
monochromatic
#511898 #6D20CC #8D48E2 #AE7DEA #CFB2F3

Accessibility & contrast

On white

5.05
#8D48E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8D48E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D48E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D48E2#FFFFFF#000000##FFFFFF
##8D48E21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#7A6D90
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8d48e2;
/* rgb */ color: rgb(141, 72, 226);
/* oklch */ color: oklch(56.6% 0.221 299.8);
Tailwind
colors: {
  custom: {
    50: '#b480ec',
    500: '#8d48e2',
    950: '#000000',
  },
}
SCSS
$custom: #8d48e2;
$custom-light: #b480ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8d48e2",
  "rgb": {
    "r": 141,
    "g": 72,
    "b": 226
  },
  "hsl": {
    "h": 266.883,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56629,
    "c": 0.22143,
    "h": 299.8
  },
  "luminance": 0.15788
}

Semantic roles & 50–950 ramp

primary
#8D48E2
secondary
#C6E1A4
accent
#EF389D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D48E2

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

Preview Lab → · Contrast checker → · Palette generator →

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