#8E45D9#8E45D9

#8E45D9 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.7% C 0.216 H 302.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8E45D9
RGBrgb(142, 69, 217)
HSLhsl(270, 66%, 56%)
HSVhsv(270, 68%, 85%)
CMYKcmyk(34.6%, 68.2%, 0%, 14.9%)
CIE-LABlab(45.66, 58.00, -63.95)
CIE-LCHlch(45.66, 86.33, 312.20°)
OKLaboklab(55.71% 0.1157 -0.182)
OKLCHoklch(55.71% 0.216 302.5)
XYZxyz(25.8049, 15.0167, 67.1712)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45D9 #90D945
analogous
#4546D9 #8E45D9 #D845D9
triadic
#8E45D9 #D98E45 #45D98E
tetradic
#8E45D9 #D94546 #90D945 #45D9D8
square
#8E45D9 #D94546 #90D945 #45D9D8
split-complementary
#8E45D9 #D9D845 #46D945
monochromatic
#511C88 #6F26BB #8E45D9 #AD78E3 #CCABEE

Accessibility & contrast

On white

5.25
#8E45D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8E45D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45D9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45D9#FFFFFF#000000##FFFFFF
##8E45D91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#006CD6
Tritanopia (blue-blind)
#7F678A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e45d9;
/* rgb */ color: rgb(142, 69, 217);
/* oklch */ color: oklch(55.7% 0.216 302.5);
Tailwind
colors: {
  custom: {
    50: '#b57ee6',
    500: '#8e45d9',
    950: '#000000',
  },
}
SCSS
$custom: #8e45d9;
$custom-light: #b57ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45d9",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 269.595,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5571,
    "c": 0.21565,
    "h": 302.5
  },
  "luminance": 0.15017
}

Semantic roles & 50–950 ramp

primary
#8E45D9
secondary
#BDDB9E
accent
#E93F95
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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