#8E45CC#8E45CC

#8E45CC is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.8% C 0.202 H 305.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8E45CC
RGBrgb(142, 69, 204)
HSLhsl(272, 57%, 54%)
HSVhsv(272, 66%, 80%)
CMYKcmyk(30.4%, 66.2%, 0%, 20%)
CIE-LABlab(44.75, 54.95, -57.95)
CIE-LCHlch(44.75, 79.86, 313.48°)
OKLaboklab(54.78% 0.1173 -0.1643)
OKLCHoklch(54.78% 0.202 305.5)
XYZxyz(24.1801, 14.3668, 58.6143)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45CC #83CC45
analogous
#4A45CC #8E45CC #CC45C7
triadic
#8E45CC #CC8E45 #45CC8E
tetradic
#8E45CC #CC4A45 #83CC45 #45C7CC
square
#8E45CC #CC4A45 #83CC45 #45C7CC
split-complementary
#8E45CC #C7CC45 #45CC4A
monochromatic
#4F2076 #6F2EA6 #8E45CC #AB75D9 #C8A5E6

Accessibility & contrast

On white

5.42
#8E45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8E45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45CC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45CC#FFFFFF#000000##FFFFFF
##8E45CC1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#836283
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e45cc;
/* rgb */ color: rgb(142, 69, 204);
/* oklch */ color: oklch(54.8% 0.202 305.5);
Tailwind
colors: {
  custom: {
    50: '#b47ddc',
    500: '#8e45cc',
    950: '#000000',
  },
}
SCSS
$custom: #8e45cc;
$custom-light: #b47ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45cc",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 272.444,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54778,
    "c": 0.20187,
    "h": 305.5
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#8E45CC
secondary
#B4D399
accent
#E0488E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8E45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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