#8E45CD#8E45CD

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

Color values

HEX#8E45CD
RGBrgb(142, 69, 205)
HSLhsl(272, 58%, 54%)
HSVhsv(272, 66%, 80%)
CMYKcmyk(30.7%, 66.3%, 0%, 19.6%)
CIE-LABlab(44.82, 55.18, -58.41)
CIE-LCHlch(44.82, 80.35, 313.37°)
OKLaboklab(54.85% 0.1172 -0.1657)
OKLCHoklch(54.85% 0.203 305.3)
XYZxyz(24.3005, 14.4150, 59.2479)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45CD #84CD45
analogous
#4A45CD #8E45CD #CD45C8
triadic
#8E45CD #CD8E45 #45CD8E
tetradic
#8E45CD #CD4A45 #84CD45 #45C8CD
square
#8E45CD #CD4A45 #84CD45 #45C8CD
split-complementary
#8E45CD #C8CD45 #45CD4A
monochromatic
#4F2077 #6F2DA8 #8E45CD #AB75DA #C9A5E7

Accessibility & contrast

On white

5.41
#8E45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8E45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45CD
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45CD#FFFFFF#000000##FFFFFF
##8E45CD1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#1C6ACA
Tritanopia (blue-blind)
#836383
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e45cd;
/* rgb */ color: rgb(142, 69, 205);
/* oklch */ color: oklch(54.8% 0.203 305.3);
Tailwind
colors: {
  custom: {
    50: '#b47edd',
    500: '#8e45cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e45cd;
$custom-light: #b47edd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45cd",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 272.206,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54848,
    "c": 0.20294,
    "h": 305.3
  },
  "luminance": 0.14415
}

Semantic roles & 50–950 ramp

primary
#8E45CD
secondary
#B5D49A
accent
#E1478E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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