#9C31C8#9C31C8

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

Color values

HEX#9C31C8
RGBrgb(156, 49, 200)
HSLhsl(283, 61%, 49%)
HSVhsv(283, 76%, 78%)
CMYKcmyk(22%, 75.5%, 0%, 21.6%)
CIE-LABlab(43.41, 65.26, -57.71)
CIE-LCHlch(43.41, 87.11, 318.51°)
OKLaboklab(54.14% 0.156 -0.163)
OKLCHoklch(54.14% 0.226 313.7)
XYZxyz(25.2321, 13.4355, 55.8965)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31C8 #5DC831
analogous
#5131C8 #9C31C8 #C831A9
triadic
#9C31C8 #C89C31 #31C89C
tetradic
#9C31C8 #C85131 #5DC831 #31A9C8
square
#9C31C8 #C85131 #5DC831 #31A9C8
split-complementary
#9C31C8 #A9C831 #31C851
monochromatic
#4F1966 #762597 #9C31C8 #B45FD8 #CB90E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C31C8#FFFFFF#000000##FFFFFF
##9C31C81.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)
#0061CC
Deuteranopia (green-blind)
#2369C5
Tritanopia (blue-blind)
#98547B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9c31c8;
/* rgb */ color: rgb(156, 49, 200);
/* oklch */ color: oklch(54.1% 0.226 313.7);
Tailwind
colors: {
  custom: {
    50: '#be74da',
    500: '#9c31c8',
    950: '#000000',
  },
}
SCSS
$custom: #9c31c8;
$custom-light: #be74da;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31c8",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 282.517,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54135,
    "c": 0.22562,
    "h": 313.7
  },
  "luminance": 0.13435
}

Semantic roles & 50–950 ramp

primary
#9C31C8
secondary
#9BCE86
accent
#E44473
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9C31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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