#9F34D1#9F34D1

#9F34D1 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.232 H 312.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9F34D1
RGBrgb(159, 52, 209)
HSLhsl(281, 63%, 51%)
HSVhsv(281, 75%, 82%)
CMYKcmyk(23.9%, 75.1%, 0%, 18%)
CIE-LABlab(44.84, 66.55, -60.57)
CIE-LCHlch(44.84, 89.99, 317.69°)
OKLaboklab(55.43% 0.1557 -0.1714)
OKLCHoklch(55.43% 0.232 312.2)
XYZxyz(27.0326, 14.4311, 61.6707)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34D1 #66D134
analogous
#5034D1 #9F34D1 #D134B4
triadic
#9F34D1 #D19F34 #34D19F
tetradic
#9F34D1 #D15034 #66D134 #34B4D1
square
#9F34D1 #D15034 #66D134 #34B4D1
split-complementary
#9F34D1 #B4D134 #34D150
monochromatic
#551A71 #7B25A3 #9F34D1 #B766DC #CE98E8

Accessibility & contrast

On white

5.40
#9F34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9F34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34D1
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34D1#FFFFFF#000000##FFFFFF
##9F34D11.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#1C6CCE
Tritanopia (blue-blind)
#995981
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9f34d1;
/* rgb */ color: rgb(159, 52, 209);
/* oklch */ color: oklch(55.4% 0.232 312.2);
Tailwind
colors: {
  custom: {
    50: '#c077e0',
    500: '#9f34d1',
    950: '#000000',
  },
}
SCSS
$custom: #9f34d1;
$custom-light: #c077e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34d1",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 280.892,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55432,
    "c": 0.23151,
    "h": 312.2
  },
  "luminance": 0.1443
}

Semantic roles & 50–950 ramp

primary
#9F34D1
secondary
#A4D38E
accent
#E64276
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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