#8D45E6#8D45E6

#8D45E6 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.229 H 299.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8D45E6
RGBrgb(141, 69, 230)
HSLhsl(267, 76%, 59%)
HSVhsv(267, 70%, 90%)
CMYKcmyk(38.7%, 70%, 0%, 9.8%)
CIE-LABlab(46.49, 60.92, -70.00)
CIE-LCHlch(46.49, 92.80, 311.03°)
OKLaboklab(56.57% 0.1123 -0.1998)
OKLCHoklch(56.57% 0.229 299.3)
XYZxyz(27.3920, 15.6318, 76.4217)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D45E6 #9EE645
analogous
#454DE6 #8D45E6 #DD45E6
triadic
#8D45E6 #E68D45 #45E68D
tetradic
#8D45E6 #E6454D #9EE645 #45E6DD
square
#8D45E6 #E6454D #9EE645 #45E6DD
split-complementary
#8D45E6 #E6DD45 #4DE645
monochromatic
#51159C #6D1CD2 #8D45E6 #AE7BED #CFB1F5

Accessibility & contrast

On white

5.09
#8D45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8D45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D45E6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D45E6#FFFFFF#000000##FFFFFF
##8D45E61.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEB
Deuteranopia (green-blind)
#006DE3
Tritanopia (blue-blind)
#786C91
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8d45e6;
/* rgb */ color: rgb(141, 69, 230);
/* oklch */ color: oklch(56.6% 0.229 299.3);
Tailwind
colors: {
  custom: {
    50: '#b57eef',
    500: '#8d45e6',
    950: '#000000',
  },
}
SCSS
$custom: #8d45e6;
$custom-light: #b57eef;
$custom-dark: #000000;
JSON
{
  "hex": "#8d45e6",
  "rgb": {
    "r": 141,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 266.832,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56574,
    "c": 0.22921,
    "h": 299.3
  },
  "luminance": 0.15632
}

Semantic roles & 50–950 ramp

primary
#8D45E6
secondary
#C7E3A4
accent
#F3359E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8D45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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