#9E31C8#9E31C8

#9E31C8 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.226 H 314.5°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9E31C8
RGBrgb(158, 49, 200)
HSLhsl(283, 61%, 49%)
HSVhsv(283, 76%, 78%)
CMYKcmyk(21%, 75.5%, 0%, 21.6%)
CIE-LABlab(43.71, 65.64, -57.22)
CIE-LCHlch(43.71, 87.07, 318.92°)
OKLaboklab(54.4% 0.1585 -0.1615)
OKLCHoklch(54.4% 0.226 314.5)
XYZxyz(25.6224, 13.6368, 55.9148)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31C8 #5BC831
analogous
#5231C8 #9E31C8 #C831A7
triadic
#9E31C8 #C89E31 #31C89E
tetradic
#9E31C8 #C85231 #5BC831 #31A7C8
square
#9E31C8 #C85231 #5BC831 #31A7C8
split-complementary
#9E31C8 #A7C831 #31C852
monochromatic
#501966 #772597 #9E31C8 #B65FD8 #CC90E4

Accessibility & contrast

On white

5.63
#9E31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9E31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31C8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31C8#FFFFFF#000000##FFFFFF
##9E31C81.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#276AC5
Tritanopia (blue-blind)
#9A537B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9e31c8;
/* rgb */ color: rgb(158, 49, 200);
/* oklch */ color: oklch(54.4% 0.226 314.5);
Tailwind
colors: {
  custom: {
    50: '#bf75d9',
    500: '#9e31c8',
    950: '#000000',
  },
}
SCSS
$custom: #9e31c8;
$custom-light: #bf75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31c8",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 283.311,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54403,
    "c": 0.22628,
    "h": 314.5
  },
  "luminance": 0.13636
}

Semantic roles & 50–950 ramp

primary
#9E31C8
secondary
#9ACE86
accent
#E44470
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9E31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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