#9A31C8#9A31C8

#9A31C8 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.225 H 313.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9A31C8
RGBrgb(154, 49, 200)
HSLhsl(282, 61%, 49%)
HSVhsv(282, 76%, 78%)
CMYKcmyk(23%, 75.5%, 0%, 21.6%)
CIE-LABlab(43.12, 64.89, -58.20)
CIE-LCHlch(43.12, 87.16, 318.11°)
OKLaboklab(53.87% 0.1534 -0.1645)
OKLCHoklch(53.87% 0.225 313)
XYZxyz(24.8482, 13.2375, 55.8785)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31C8 #5FC831
analogous
#4F31C8 #9A31C8 #C831AB
triadic
#9A31C8 #C89A31 #31C89A
tetradic
#9A31C8 #C84F31 #5FC831 #31ABC8
square
#9A31C8 #C84F31 #5FC831 #31ABC8
split-complementary
#9A31C8 #ABC831 #31C84F
monochromatic
#4E1966 #742597 #9A31C8 #B35FD8 #CA90E4

Accessibility & contrast

On white

5.76
#9A31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9A31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31C8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31C8#FFFFFF#000000##FFFFFF
##9A31C81.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#1F68C5
Tritanopia (blue-blind)
#95547B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9a31c8;
/* rgb */ color: rgb(154, 49, 200);
/* oklch */ color: oklch(53.9% 0.225 313.0);
Tailwind
colors: {
  custom: {
    50: '#bc74da',
    500: '#9a31c8',
    950: '#000000',
  },
}
SCSS
$custom: #9a31c8;
$custom-light: #bc74da;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31c8",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 281.722,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53868,
    "c": 0.22498,
    "h": 313
  },
  "luminance": 0.13237
}

Semantic roles & 50–950 ramp

primary
#9A31C8
secondary
#9CCE86
accent
#E44475
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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