#9E45C2#9E45C2

#9E45C2 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.197 H 314.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9E45C2
RGBrgb(158, 69, 194)
HSLhsl(283, 51%, 52%)
HSVhsv(283, 64%, 76%)
CMYKcmyk(18.6%, 64.4%, 0%, 23.9%)
CIE-LABlab(46.21, 56.30, -49.72)
CIE-LCHlch(46.21, 75.11, 318.55°)
OKLaboklab(56.07% 0.1385 -0.1397)
OKLCHoklch(56.07% 0.197 314.8)
XYZxyz(25.9647, 15.4212, 52.6373)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E45C2 #69C245
analogous
#6045C2 #9E45C2 #C245A8
triadic
#9E45C2 #C29E45 #45C29E
tetradic
#9E45C2 #C26045 #69C245 #45A8C2
square
#9E45C2 #C26045 #69C245 #45A8C2
split-complementary
#9E45C2 #A8C245 #45C260
monochromatic
#55236A #7B3298 #9E45C2 #B673D1 #CEA1E0

Accessibility & contrast

On white

5.14
#9E45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9E45C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E45C2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E45C2#FFFFFF#000000##FFFFFF
##9E45C21.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)
#0D68C6
Deuteranopia (green-blind)
#4270BF
Tritanopia (blue-blind)
#9B5C7D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e45c2;
/* rgb */ color: rgb(158, 69, 194);
/* oklch */ color: oklch(56.1% 0.197 314.8);
Tailwind
colors: {
  custom: {
    50: '#be7fd5',
    500: '#9e45c2',
    950: '#000000',
  },
}
SCSS
$custom: #9e45c2;
$custom-light: #be7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e45c2",
  "rgb": {
    "r": 158,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 282.72,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56065,
    "c": 0.1967,
    "h": 314.8
  },
  "luminance": 0.1542
}

Semantic roles & 50–950 ramp

primary
#9E45C2
secondary
#A6CD96
accent
#DA4E76
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9E45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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