#9A31C2#9A31C2

#9A31C2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.220 H 314.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9A31C2
RGBrgb(154, 49, 194)
HSLhsl(283, 60%, 48%)
HSVhsv(283, 75%, 76%)
CMYKcmyk(20.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(42.71, 63.69, -55.37)
CIE-LCHlch(42.71, 84.39, 319.00°)
OKLaboklab(53.45% 0.1544 -0.1562)
OKLCHoklch(53.45% 0.22 314.7)
XYZxyz(24.1607, 12.9626, 52.2578)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31C2 #59C231
analogous
#5131C2 #9A31C2 #C231A2
triadic
#9A31C2 #C29A31 #31C29A
tetradic
#9A31C2 #C25131 #59C231 #31A2C2
square
#9A31C2 #C25131 #59C231 #31A2C2
split-complementary
#9A31C2 #A2C231 #31C251
monochromatic
#4C1860 #732591 #9A31C2 #B45BD6 #CA8CE2

Accessibility & contrast

On white

5.85
#9A31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9A31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31C2
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31C2#FFFFFF#000000##FFFFFF
##9A31C21.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#2967BF
Tritanopia (blue-blind)
#965178
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9a31c2;
/* rgb */ color: rgb(154, 49, 194);
/* oklch */ color: oklch(53.4% 0.220 314.7);
Tailwind
colors: {
  custom: {
    50: '#bc74d5',
    500: '#9a31c2',
    950: '#000000',
  },
}
SCSS
$custom: #9a31c2;
$custom-light: #bc74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31c2",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 283.448,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53446,
    "c": 0.21963,
    "h": 314.7
  },
  "luminance": 0.12962
}

Semantic roles & 50–950 ramp

primary
#9A31C2
secondary
#97CC83
accent
#E34571
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9A31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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