#9E45CC#9E45CC

#9E45CC is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.7% C 0.207 H 311.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9E45CC
RGBrgb(158, 69, 204)
HSLhsl(280, 57%, 54%)
HSVhsv(280, 66%, 80%)
CMYKcmyk(22.5%, 66.2%, 0%, 20%)
CIE-LABlab(46.82, 58.40, -54.51)
CIE-LCHlch(46.82, 79.88, 316.98°)
OKLaboklab(56.71% 0.138 -0.1537)
OKLCHoklch(56.71% 0.207 311.9)
XYZxyz(27.1258, 15.8857, 58.7523)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E45CC #73CC45
analogous
#5A45CC #9E45CC #CC45B6
triadic
#9E45CC #CC9E45 #45CC9E
tetradic
#9E45CC #CC5A45 #73CC45 #45B6CC
square
#9E45CC #CC5A45 #73CC45 #45B6CC
split-complementary
#9E45CC #B6CC45 #45CC5A
monochromatic
#592076 #7D2EA6 #9E45CC #B775D9 #D0A5E6

Accessibility & contrast

On white

5.03
#9E45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9E45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E45CC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E45CC#FFFFFF#000000##FFFFFF
##9E45CC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#996083
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9e45cc;
/* rgb */ color: rgb(158, 69, 204);
/* oklch */ color: oklch(56.7% 0.207 311.9);
Tailwind
colors: {
  custom: {
    50: '#be7fdc',
    500: '#9e45cc',
    950: '#000000',
  },
}
SCSS
$custom: #9e45cc;
$custom-light: #be7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e45cc",
  "rgb": {
    "r": 158,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 279.556,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56708,
    "c": 0.20657,
    "h": 311.9
  },
  "luminance": 0.15885
}

Semantic roles & 50–950 ramp

primary
#9E45CC
secondary
#ADD399
accent
#E0487C
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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