#9E45CB#9E45CB

#9E45CB is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.6% C 0.206 H 312.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9E45CB
RGBrgb(158, 69, 203)
HSLhsl(280, 56%, 53%)
HSVhsv(280, 66%, 80%)
CMYKcmyk(22.2%, 66%, 0%, 20.4%)
CIE-LABlab(46.76, 58.19, -54.03)
CIE-LCHlch(46.76, 79.40, 317.12°)
OKLaboklab(56.64% 0.1381 -0.1523)
OKLCHoklch(56.64% 0.206 312.2)
XYZxyz(27.0062, 15.8379, 58.1227)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E45CB #72CB45
analogous
#5B45CB #9E45CB #CB45B5
triadic
#9E45CB #CB9E45 #45CB9E
tetradic
#9E45CB #CB5B45 #72CB45 #45B5CB
square
#9E45CB #CB5B45 #72CB45 #45B5CB
split-complementary
#9E45CB #B5CB45 #45CB5B
monochromatic
#592175 #7D2EA5 #9E45CB #B775D8 #D0A5E6

Accessibility & contrast

On white

5.04
#9E45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9E45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E45CB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E45CB#FFFFFF#000000##FFFFFF
##9E45CB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#996082
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9e45cb;
/* rgb */ color: rgb(158, 69, 203);
/* oklch */ color: oklch(56.6% 0.206 312.2);
Tailwind
colors: {
  custom: {
    50: '#be7fdb',
    500: '#9e45cb',
    950: '#000000',
  },
}
SCSS
$custom: #9e45cb;
$custom-light: #be7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e45cb",
  "rgb": {
    "r": 158,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 279.851,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56642,
    "c": 0.20558,
    "h": 312.2
  },
  "luminance": 0.15837
}

Semantic roles & 50–950 ramp

primary
#9E45CB
secondary
#ACD399
accent
#E0487B
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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