#8D45E2#8D45E2

#8D45E2 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.225 H 300.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8D45E2
RGBrgb(141, 69, 226)
HSLhsl(268, 73%, 58%)
HSVhsv(268, 69%, 89%)
CMYKcmyk(37.6%, 69.5%, 0%, 11.4%)
CIE-LABlab(46.19, 59.96, -68.22)
CIE-LCHlch(46.19, 90.82, 311.31°)
OKLaboklab(56.27% 0.113 -0.1945)
OKLCHoklch(56.27% 0.225 300.2)
XYZxyz(26.8367, 15.4097, 73.4973)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D45E2 #9AE245
analogous
#454BE2 #8D45E2 #DB45E2
triadic
#8D45E2 #E28D45 #45E28D
tetradic
#8D45E2 #E2454B #9AE245 #45E2DB
square
#8D45E2 #E2454B #9AE245 #45E2DB
split-complementary
#8D45E2 #E2DB45 #4BE245
monochromatic
#511795 #6E20CA #8D45E2 #AD7AEA #CEAFF3

Accessibility & contrast

On white

5.14
#8D45E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8D45E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D45E2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D45E2#FFFFFF#000000##FFFFFF
##8D45E21.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#7A6B8F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d45e2;
/* rgb */ color: rgb(141, 69, 226);
/* oklch */ color: oklch(56.3% 0.225 300.2);
Tailwind
colors: {
  custom: {
    50: '#b57eec',
    500: '#8d45e2',
    950: '#000000',
  },
}
SCSS
$custom: #8d45e2;
$custom-light: #b57eec;
$custom-dark: #000000;
JSON
{
  "hex": "#8d45e2",
  "rgb": {
    "r": 141,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 267.516,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56269,
    "c": 0.225,
    "h": 300.2
  },
  "luminance": 0.1541
}

Semantic roles & 50–950 ramp

primary
#8D45E2
secondary
#C4E1A2
accent
#F0389C
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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