#8E48D2#8E48D2

#8E48D2 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.204 H 303.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8E48D2
RGBrgb(142, 72, 210)
HSLhsl(270, 61%, 55%)
HSVhsv(270, 66%, 82%)
CMYKcmyk(32.4%, 65.7%, 0%, 17.6%)
CIE-LABlab(45.69, 54.91, -59.89)
CIE-LCHlch(45.69, 81.25, 312.51°)
OKLaboklab(55.58% 0.1134 -0.1701)
OKLCHoklch(55.58% 0.204 303.7)
XYZxyz(25.1029, 15.0387, 62.5405)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E48D2 #8CD248
analogous
#4948D2 #8E48D2 #D248D1
triadic
#8E48D2 #D28E48 #48D28E
tetradic
#8E48D2 #D24948 #8CD248 #48D1D2
square
#8E48D2 #D24948 #8CD248 #48D1D2
split-complementary
#8E48D2 #D1D248 #48D249
monochromatic
#512080 #6F2CB1 #8E48D2 #AC79DE #CBAAEA

Accessibility & contrast

On white

5.24
#8E48D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8E48D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E48D2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E48D2#FFFFFF#000000##FFFFFF
##8E48D21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#166CCF
Tritanopia (blue-blind)
#816687
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e48d2;
/* rgb */ color: rgb(142, 72, 210);
/* oklch */ color: oklch(55.6% 0.204 303.7);
Tailwind
colors: {
  custom: {
    50: '#b47fe1',
    500: '#8e48d2',
    950: '#000000',
  },
}
SCSS
$custom: #8e48d2;
$custom-light: #b47fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e48d2",
  "rgb": {
    "r": 142,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 270.435,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55578,
    "c": 0.20438,
    "h": 303.7
  },
  "luminance": 0.15039
}

Semantic roles & 50–950 ramp

primary
#8E48D2
secondary
#BAD89E
accent
#E44493
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E48D2

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

Preview Lab → · Contrast checker → · Palette generator →

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