#8E45C8#8E45C8

#8E45C8 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.5% C 0.198 H 306.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8E45C8
RGBrgb(142, 69, 200)
HSLhsl(273, 54%, 53%)
HSVhsv(273, 66%, 78%)
CMYKcmyk(29%, 65.5%, 0%, 21.6%)
CIE-LABlab(44.49, 54.02, -56.07)
CIE-LCHlch(44.49, 77.86, 313.93°)
OKLaboklab(54.5% 0.1176 -0.1588)
OKLCHoklch(54.5% 0.198 306.5)
XYZxyz(23.7066, 14.1774, 56.1200)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45C8 #7FC845
analogous
#4C45C8 #8E45C8 #C845C1
triadic
#8E45C8 #C88E45 #45C88E
tetradic
#8E45C8 #C84C45 #7FC845 #45C1C8
square
#8E45C8 #C84C45 #7FC845 #45C1C8
split-complementary
#8E45C8 #C1C845 #45C84C
monochromatic
#4E2171 #6E2FA0 #8E45C8 #AB74D6 #C7A3E4

Accessibility & contrast

On white

5.48
#8E45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8E45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45C8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45C8#FFFFFF#000000##FFFFFF
##8E45C81.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#256AC5
Tritanopia (blue-blind)
#846181
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e45c8;
/* rgb */ color: rgb(142, 69, 200);
/* oklch */ color: oklch(54.5% 0.198 306.5);
Tailwind
colors: {
  custom: {
    50: '#b37dd9',
    500: '#8e45c8',
    950: '#000000',
  },
}
SCSS
$custom: #8e45c8;
$custom-light: #b37dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45c8",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 273.435,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.545,
    "c": 0.19762,
    "h": 306.5
  },
  "luminance": 0.14177
}

Semantic roles & 50–950 ramp

primary
#8E45C8
secondary
#B1D198
accent
#DE4A8B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8E45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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