#9E45DB#9E45DB

#9E45DB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.7% C 0.221 H 308.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9E45DB
RGBrgb(158, 69, 219)
HSLhsl(276, 68%, 56%)
HSVhsv(276, 68%, 86%)
CMYKcmyk(27.9%, 68.5%, 0%, 14.1%)
CIE-LABlab(47.80, 61.64, -61.52)
CIE-LCHlch(47.80, 87.09, 315.05°)
OKLaboklab(57.72% 0.1366 -0.1743)
OKLCHoklch(57.72% 0.221 308.1)
XYZxyz(29.0122, 16.6403, 68.6876)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E45DB #82DB45
analogous
#5345DB #9E45DB #DB45CD
triadic
#9E45DB #DB9E45 #45DB9E
tetradic
#9E45DB #DB5345 #82DB45 #45CDDB
square
#9E45DB #DB5345 #82DB45 #45CDDB
split-complementary
#9E45DB #CDDB45 #45DB53
monochromatic
#5D1B8B #8025BE #9E45DB #B978E5 #D3ACEF

Accessibility & contrast

On white

4.85
#9E45DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9E45DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E45DB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E45DB#FFFFFF#000000##FFFFFF
##9E45DB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#2172D8
Tritanopia (blue-blind)
#94668B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9e45db;
/* rgb */ color: rgb(158, 69, 219);
/* oklch */ color: oklch(57.7% 0.221 308.1);
Tailwind
colors: {
  custom: {
    50: '#bf7fe7',
    500: '#9e45db',
    950: '#000000',
  },
}
SCSS
$custom: #9e45db;
$custom-light: #bf7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e45db",
  "rgb": {
    "r": 158,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 275.6,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57721,
    "c": 0.22146,
    "h": 308.1
  },
  "luminance": 0.1664
}

Semantic roles & 50–950 ramp

primary
#9E45DB
secondary
#B8DD9F
accent
#EA3D84
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9E45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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