#9E51CD#9E51CD

#9E51CD is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.3% C 0.191 H 310.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9E51CD
RGBrgb(158, 81, 205)
HSLhsl(277, 55%, 56%)
HSVhsv(277, 60%, 80%)
CMYKcmyk(22.9%, 60.5%, 0%, 19.6%)
CIE-LABlab(48.96, 52.93, -51.65)
CIE-LCHlch(48.96, 73.96, 315.70°)
OKLaboklab(58.27% 0.1239 -0.1454)
OKLCHoklch(58.27% 0.191 310.4)
XYZxyz(28.0603, 17.5623, 59.6574)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51CD #80CD51
analogous
#6051CD #9E51CD #CD51BE
triadic
#9E51CD #CD9E51 #51CD9E
tetradic
#9E51CD #CD6051 #80CD51 #51BECD
square
#9E51CD #CD6051 #80CD51 #51BECD
split-complementary
#9E51CD #BECD51 #51CD60
monochromatic
#5D257F #7F32AF #9E51CD #B981DB #D3B0E8

Accessibility & contrast

On white

4.65
#9E51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#9E51CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9E51CD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51CD#FFFFFF#000000##FFFFFF
##9E51CD1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F71D1
Deuteranopia (green-blind)
#4476CA
Tritanopia (blue-blind)
#986987
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9e51cd;
/* rgb */ color: rgb(158, 81, 205);
/* oklch */ color: oklch(58.3% 0.191 310.4);
Tailwind
colors: {
  custom: {
    50: '#be86dd',
    500: '#9e51cd',
    950: '#000000',
  },
}
SCSS
$custom: #9e51cd;
$custom-light: #be86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51cd",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 277.258,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58272,
    "c": 0.19104,
    "h": 310.4
  },
  "luminance": 0.17562
}

Semantic roles & 50–950 ramp

primary
#9E51CD
secondary
#B7D7A3
accent
#DF4982
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9E51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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