#9E45CD#9E45CD

#9E45CD is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.8% C 0.208 H 311.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9E45CD
RGBrgb(158, 69, 205)
HSLhsl(279, 58%, 54%)
HSVhsv(279, 66%, 80%)
CMYKcmyk(22.9%, 66.3%, 0%, 19.6%)
CIE-LABlab(46.89, 58.61, -54.98)
CIE-LCHlch(46.89, 80.36, 316.83°)
OKLaboklab(56.77% 0.1379 -0.1551)
OKLCHoklch(56.77% 0.208 311.7)
XYZxyz(27.2461, 15.9338, 59.3860)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E45CD #74CD45
analogous
#5A45CD #9E45CD #CD45B8
triadic
#9E45CD #CD9E45 #45CD9E
tetradic
#9E45CD #CD5A45 #74CD45 #45B8CD
square
#9E45CD #CD5A45 #74CD45 #45B8CD
split-complementary
#9E45CD #B8CD45 #45CD5A
monochromatic
#592077 #7D2DA8 #9E45CD #B775DA #D0A5E7

Accessibility & contrast

On white

5.02
#9E45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9E45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E45CD
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E45CD#FFFFFF#000000##FFFFFF
##9E45CD1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#3771CA
Tritanopia (blue-blind)
#986183
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9e45cd;
/* rgb */ color: rgb(158, 69, 205);
/* oklch */ color: oklch(56.8% 0.208 311.7);
Tailwind
colors: {
  custom: {
    50: '#bf7fdd',
    500: '#9e45cd',
    950: '#000000',
  },
}
SCSS
$custom: #9e45cd;
$custom-light: #bf7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e45cd",
  "rgb": {
    "r": 158,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 279.265,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56774,
    "c": 0.20756,
    "h": 311.7
  },
  "luminance": 0.15933
}

Semantic roles & 50–950 ramp

primary
#9E45CD
secondary
#AED49A
accent
#E1477C
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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