#9A31CC#9A31CC

#9A31CC is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.229 H 311.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9A31CC
RGBrgb(154, 49, 204)
HSLhsl(281, 61%, 50%)
HSVhsv(281, 76%, 80%)
CMYKcmyk(24.5%, 76%, 0%, 20%)
CIE-LABlab(43.40, 65.69, -60.06)
CIE-LCHlch(43.40, 89.01, 317.57°)
OKLaboklab(54.16% 0.1528 -0.17)
OKLCHoklch(54.16% 0.229 311.9)
XYZxyz(25.3218, 13.4270, 58.3728)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31CC #63CC31
analogous
#4C31CC #9A31CC #CC31B1
triadic
#9A31CC #CC9A31 #31CC9A
tetradic
#9A31CC #CC4C31 #63CC31 #31B1CC
square
#9A31CC #CC4C31 #63CC31 #31B1CC
split-complementary
#9A31CC #B1CC31 #31CC4C
monochromatic
#4F1969 #75259B #9A31CC #B261D9 #CA92E5

Accessibility & contrast

On white

5.70
#9A31CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9A31CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31CC
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31CC#FFFFFF#000000##FFFFFF
##9A31CC1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#1568C9
Tritanopia (blue-blind)
#94567D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9a31cc;
/* rgb */ color: rgb(154, 49, 204);
/* oklch */ color: oklch(54.2% 0.229 311.9);
Tailwind
colors: {
  custom: {
    50: '#bd74dc',
    500: '#9a31cc',
    950: '#000000',
  },
}
SCSS
$custom: #9a31cc;
$custom-light: #bd74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31cc",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 280.645,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54155,
    "c": 0.22855,
    "h": 311.9
  },
  "luminance": 0.13426
}

Semantic roles & 50–950 ramp

primary
#9A31CC
secondary
#A0D089
accent
#E44377
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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