#9F31B2#9F31B2

#9F31B2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.208 H 321.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9F31B2
RGBrgb(159, 49, 178)
HSLhsl(291, 57%, 45%)
HSVhsv(291, 72%, 70%)
CMYKcmyk(10.7%, 72.5%, 0%, 30.2%)
CIE-LABlab(42.43, 61.64, -46.38)
CIE-LCHlch(42.43, 77.14, 323.04°)
OKLaboklab(53.08% 0.1621 -0.1297)
OKLCHoklch(53.08% 0.208 321.3)
XYZxyz(23.4314, 12.7832, 43.3440)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31B2 #44B231
analogous
#5F31B2 #9F31B2 #B23185
triadic
#9F31B2 #B29F31 #31B29F
tetradic
#9F31B2 #B25F31 #44B231 #3185B2
square
#9F31B2 #B25F31 #44B231 #3185B2
split-complementary
#9F31B2 #85B231 #31B25F
monochromatic
#491752 #742482 #9F31B2 #BD51CF #CF81DC

Accessibility & contrast

On white

5.90
#9F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9F31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31B2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31B2#FFFFFF#000000##FFFFFF
##9F31B21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#4168AF
Tritanopia (blue-blind)
#A0496F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f31b2;
/* rgb */ color: rgb(159, 49, 178);
/* oklch */ color: oklch(53.1% 0.208 321.3);
Tailwind
colors: {
  custom: {
    50: '#bf74ca',
    500: '#9f31b2',
    950: '#000000',
  },
}
SCSS
$custom: #9f31b2;
$custom-light: #bf74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31b2",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 291.163,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53077,
    "c": 0.2076,
    "h": 321.3
  },
  "luminance": 0.12782
}

Semantic roles & 50–950 ramp

primary
#9F31B2
secondary
#85C579
accent
#E0485E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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