#9E45DC#9E45DC

#9E45DC is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.8% C 0.222 H 307.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9E45DC
RGBrgb(158, 69, 220)
HSLhsl(275, 68%, 57%)
HSVhsv(275, 69%, 86%)
CMYKcmyk(28.2%, 68.6%, 0%, 13.7%)
CIE-LABlab(47.87, 61.86, -61.98)
CIE-LCHlch(47.87, 87.57, 314.94°)
OKLaboklab(57.79% 0.1365 -0.1757)
OKLCHoklch(57.79% 0.222 307.8)
XYZxyz(29.1443, 16.6931, 69.3830)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E45DC #83DC45
analogous
#5345DC #9E45DC #DC45CF
triadic
#9E45DC #DC9E45 #45DC9E
tetradic
#9E45DC #DC5345 #83DC45 #45CFDC
square
#9E45DC #DC5345 #83DC45 #45CFDC
split-complementary
#9E45DC #CFDC45 #45DC53
monochromatic
#5D1A8C #8024C0 #9E45DC #B979E6 #D4ACEF

Accessibility & contrast

On white

4.84
#9E45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#9E45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E45DC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E45DC#FFFFFF#000000##FFFFFF
##9E45DC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#1F72D9
Tritanopia (blue-blind)
#94668C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9e45dc;
/* rgb */ color: rgb(158, 69, 220);
/* oklch */ color: oklch(57.8% 0.222 307.8);
Tailwind
colors: {
  custom: {
    50: '#bf7fe8',
    500: '#9e45dc',
    950: '#000000',
  },
}
SCSS
$custom: #9e45dc;
$custom-light: #bf7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e45dc",
  "rgb": {
    "r": 158,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 275.364,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5779,
    "c": 0.22245,
    "h": 307.8
  },
  "luminance": 0.16693
}

Semantic roles & 50–950 ramp

primary
#9E45DC
secondary
#B9DDA0
accent
#EB3D84
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9E45DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9E45DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva