#8E45CA#8E45CA

#8E45CA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.6% C 0.200 H 306.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8E45CA
RGBrgb(142, 69, 202)
HSLhsl(273, 56%, 53%)
HSVhsv(273, 66%, 79%)
CMYKcmyk(29.7%, 65.8%, 0%, 20.8%)
CIE-LABlab(44.62, 54.48, -57.01)
CIE-LCHlch(44.62, 78.86, 313.70°)
OKLaboklab(54.64% 0.1175 -0.1616)
OKLCHoklch(54.64% 0.2 306)
XYZxyz(23.9418, 14.2715, 57.3591)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45CA #81CA45
analogous
#4B45CA #8E45CA #CA45C4
triadic
#8E45CA #CA8E45 #45CA8E
tetradic
#8E45CA #CA4B45 #81CA45 #45C4CA
square
#8E45CA #CA4B45 #81CA45 #45C4CA
split-complementary
#8E45CA #C4CA45 #45CA4B
monochromatic
#4E2174 #6F2FA3 #8E45CA #AB75D8 #C8A4E5

Accessibility & contrast

On white

5.45
#8E45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8E45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45CA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45CA#FFFFFF#000000##FFFFFF
##8E45CA1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#846282
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e45ca;
/* rgb */ color: rgb(142, 69, 202);
/* oklch */ color: oklch(54.6% 0.200 306.0);
Tailwind
colors: {
  custom: {
    50: '#b37ddb',
    500: '#8e45ca',
    950: '#000000',
  },
}
SCSS
$custom: #8e45ca;
$custom-light: #b37ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45ca",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 272.932,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54639,
    "c": 0.19975,
    "h": 306
  },
  "luminance": 0.14271
}

Semantic roles & 50–950 ramp

primary
#8E45CA
secondary
#B3D299
accent
#DF498D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8E45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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