#9A31BF#9A31BF

#9A31BF is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.217 H 315.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9A31BF
RGBrgb(154, 49, 191)
HSLhsl(284, 59%, 47%)
HSVhsv(284, 74%, 75%)
CMYKcmyk(19.4%, 74.3%, 0%, 25.1%)
CIE-LABlab(42.50, 63.09, -53.94)
CIE-LCHlch(42.50, 83.01, 319.47°)
OKLaboklab(53.24% 0.1548 -0.1521)
OKLCHoklch(53.24% 0.217 315.5)
XYZxyz(23.8272, 12.8291, 50.5013)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31BF #56BF31
analogous
#5331BF #9A31BF #BF319D
triadic
#9A31BF #BF9A31 #31BF9A
tetradic
#9A31BF #BF5331 #56BF31 #319DBF
square
#9A31BF #BF5331 #56BF31 #319DBF
split-complementary
#9A31BF #9DBF31 #31BF53
monochromatic
#4B185E #73258E #9A31BF #B459D4 #CA8AE1

Accessibility & contrast

On white

5.89
#9A31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9A31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31BF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31BF#FFFFFF#000000##FFFFFF
##9A31BF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#2D67BC
Tritanopia (blue-blind)
#975076
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9a31bf;
/* rgb */ color: rgb(154, 49, 191);
/* oklch */ color: oklch(53.2% 0.217 315.5);
Tailwind
colors: {
  custom: {
    50: '#bc74d3',
    500: '#9a31bf',
    950: '#000000',
  },
}
SCSS
$custom: #9a31bf;
$custom-light: #bc74d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31bf",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 284.366,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53239,
    "c": 0.21697,
    "h": 315.5
  },
  "luminance": 0.12828
}

Semantic roles & 50–950 ramp

primary
#9A31BF
secondary
#94CB81
accent
#E2456E
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9A31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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