#8D45E1#8D45E1

#8D45E1 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.2% C 0.224 H 300.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8D45E1
RGBrgb(141, 69, 225)
HSLhsl(268, 72%, 58%)
HSVhsv(268, 69%, 88%)
CMYKcmyk(37.3%, 69.3%, 0%, 11.8%)
CIE-LABlab(46.12, 59.72, -67.77)
CIE-LCHlch(46.12, 90.33, 311.39°)
OKLaboklab(56.19% 0.1132 -0.1932)
OKLCHoklch(56.19% 0.224 300.4)
XYZxyz(26.6999, 15.3550, 72.7767)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D45E1 #99E145
analogous
#454BE1 #8D45E1 #DB45E1
triadic
#8D45E1 #E18D45 #45E18D
tetradic
#8D45E1 #E1454B #99E145 #45E1DB
square
#8D45E1 #E1454B #99E145 #45E1DB
split-complementary
#8D45E1 #E1DB45 #4BE145
monochromatic
#511894 #6E20C8 #8D45E1 #AD7AE9 #CEAEF2

Accessibility & contrast

On white

5.16
#8D45E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8D45E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D45E1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D45E1#FFFFFF#000000##FFFFFF
##8D45E11.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006CDE
Tritanopia (blue-blind)
#7A6B8E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d45e1;
/* rgb */ color: rgb(141, 69, 225);
/* oklch */ color: oklch(56.2% 0.224 300.4);
Tailwind
colors: {
  custom: {
    50: '#b57eeb',
    500: '#8d45e1',
    950: '#000000',
  },
}
SCSS
$custom: #8d45e1;
$custom-light: #b57eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d45e1",
  "rgb": {
    "r": 141,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 267.692,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56194,
    "c": 0.22394,
    "h": 300.4
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#8D45E1
secondary
#C3E0A2
accent
#EF399B
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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