#9D54E1#9D54E1

#9D54E1 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.8% C 0.208 H 304.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9D54E1
RGBrgb(157, 84, 225)
HSLhsl(271, 70%, 61%)
HSVhsv(271, 63%, 88%)
CMYKcmyk(30.2%, 62.7%, 0%, 11.8%)
CIE-LABlab(50.62, 55.75, -60.39)
CIE-LCHlch(50.62, 82.19, 312.71°)
OKLaboklab(59.85% 0.1184 -0.1711)
OKLCHoklch(59.85% 0.208 304.7)
XYZxyz(30.6625, 18.9451, 73.2610)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D54E1 #98E154
analogous
#5654E1 #9D54E1 #E154DE
triadic
#9D54E1 #E19D54 #54E19D
tetradic
#9D54E1 #E15654 #98E154 #54DEE1
square
#9D54E1 #E15654 #98E154 #54DEE1
split-complementary
#9D54E1 #DEE154 #54E156
monochromatic
#601C9F #7F25D3 #9D54E1 #BB88EA #D9BCF3

Accessibility & contrast

On white

4.39
#9D54E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9D54E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D54E1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D54E1#FFFFFF#000000##000000
##9D54E11.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#2F79DE
Tritanopia (blue-blind)
#917293
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9d54e1;
/* rgb */ color: rgb(157, 84, 225);
/* oklch */ color: oklch(59.8% 0.208 304.7);
Tailwind
colors: {
  custom: {
    50: '#be88eb',
    500: '#9d54e1',
    950: '#000000',
  },
}
SCSS
$custom: #9d54e1;
$custom-light: #be88eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d54e1",
  "rgb": {
    "r": 157,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 271.064,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59846,
    "c": 0.20804,
    "h": 304.7
  },
  "luminance": 0.18945
}

Semantic roles & 50–950 ramp

primary
#9D54E1
secondary
#C7E3AE
accent
#D2136F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D54E1

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

Preview Lab → · Contrast checker → · Palette generator →

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