#8E2BDD#8E2BDD

#8E2BDD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.4% C 0.246 H 303.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8E2BDD
RGBrgb(142, 43, 221)
HSLhsl(273, 72%, 52%)
HSVhsv(273, 81%, 87%)
CMYKcmyk(35.7%, 80.5%, 0%, 13.3%)
CIE-LABlab(42.31, 69.33, -71.69)
CIE-LCHlch(42.31, 99.73, 314.04°)
OKLaboklab(53.44% 0.1374 -0.2046)
OKLCHoklch(53.44% 0.246 303.9)
XYZxyz(25.0673, 12.6990, 69.5231)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BDD #7ADD2B
analogous
#352BDD #8E2BDD #DD2BD3
triadic
#8E2BDD #DD8E2B #2BDD8E
tetradic
#8E2BDD #DD352B #7ADD2B #2BD3DD
square
#8E2BDD #DD352B #7ADD2B #2BD3DD
split-complementary
#8E2BDD #D3DD2B #2BDD35
monochromatic
#4D147A #6E1CAF #8E2BDD #AA60E5 #C694EE

Accessibility & contrast

On white

5.93
#8E2BDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8E2BDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2BDD
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BDD#FFFFFF#000000##FFFFFF
##8E2BDD1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E2
Deuteranopia (green-blind)
#0064DA
Tritanopia (blue-blind)
#7E5C86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8e2bdd;
/* rgb */ color: rgb(142, 43, 221);
/* oklch */ color: oklch(53.4% 0.246 303.9);
Tailwind
colors: {
  custom: {
    50: '#b671e9',
    500: '#8e2bdd',
    950: '#000000',
  },
}
SCSS
$custom: #8e2bdd;
$custom-light: #b671e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2bdd",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 221
  },
  "hsl": {
    "h": 273.371,
    "s": 72.358,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53444,
    "c": 0.24642,
    "h": 303.9
  },
  "luminance": 0.12699
}

Semantic roles & 50–950 ramp

primary
#8E2BDD
secondary
#AED98B
accent
#EF398A
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8E2BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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