#9E51CA#9E51CA

#9E51CA is a mid, vivid violet. Relative luminance 0.174; OKLCH L 58.1% C 0.188 H 311.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9E51CA
RGBrgb(158, 81, 202)
HSLhsl(278, 53%, 55%)
HSVhsv(278, 60%, 79%)
CMYKcmyk(21.8%, 59.9%, 0%, 20.8%)
CIE-LABlab(48.78, 52.27, -50.21)
CIE-LCHlch(48.78, 72.48, 316.15°)
OKLaboklab(58.09% 0.1239 -0.1412)
OKLCHoklch(58.09% 0.188 311.3)
XYZxyz(27.7017, 17.4189, 57.7685)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51CA #7DCA51
analogous
#6151CA #9E51CA #CA51B9
triadic
#9E51CA #CA9E51 #51CA9E
tetradic
#9E51CA #CA6151 #7DCA51 #51B9CA
square
#9E51CA #CA6151 #7DCA51 #51B9CA
split-complementary
#9E51CA #B9CA51 #51CA61
monochromatic
#5C257B #7F34AA #9E51CA #B880D8 #D2AFE7

Accessibility & contrast

On white

4.68
#9E51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#9E51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E51CA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51CA#FFFFFF#000000##FFFFFF
##9E51CA1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2470CE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#996786
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9e51ca;
/* rgb */ color: rgb(158, 81, 202);
/* oklch */ color: oklch(58.1% 0.188 311.3);
Tailwind
colors: {
  custom: {
    50: '#be86db',
    500: '#9e51ca',
    950: '#000000',
  },
}
SCSS
$custom: #9e51ca;
$custom-light: #be86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51ca",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 278.182,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58086,
    "c": 0.18785,
    "h": 311.3
  },
  "luminance": 0.17418
}

Semantic roles & 50–950 ramp

primary
#9E51CA
secondary
#B5D5A2
accent
#DD4B80
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9E51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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