#9D34D1#9D34D1

#9D34D1 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.2% C 0.231 H 311.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9D34D1
RGBrgb(157, 52, 209)
HSLhsl(280, 63%, 51%)
HSVhsv(280, 75%, 82%)
CMYKcmyk(24.9%, 75.1%, 0%, 18%)
CIE-LABlab(44.56, 66.19, -61.05)
CIE-LCHlch(44.56, 90.04, 317.31°)
OKLaboklab(55.17% 0.1531 -0.1728)
OKLCHoklch(55.17% 0.231 311.5)
XYZxyz(26.6391, 14.2282, 61.6523)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D34D1 #68D134
analogous
#4E34D1 #9D34D1 #D134B7
triadic
#9D34D1 #D19D34 #34D19D
tetradic
#9D34D1 #D14E34 #68D134 #34B7D1
square
#9D34D1 #D14E34 #68D134 #34B7D1
split-complementary
#9D34D1 #B7D134 #34D14E
monochromatic
#541A71 #7925A3 #9D34D1 #B566DC #CD98E8

Accessibility & contrast

On white

5.46
#9D34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9D34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D34D1
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D34D1#FFFFFF#000000##FFFFFF
##9D34D11.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#166BCE
Tritanopia (blue-blind)
#965981
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d34d1;
/* rgb */ color: rgb(157, 52, 209);
/* oklch */ color: oklch(55.2% 0.231 311.5);
Tailwind
colors: {
  custom: {
    50: '#bf76e0',
    500: '#9d34d1',
    950: '#000000',
  },
}
SCSS
$custom: #9d34d1;
$custom-light: #bf76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d34d1",
  "rgb": {
    "r": 157,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 280.127,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55171,
    "c": 0.2309,
    "h": 311.5
  },
  "luminance": 0.14228
}

Semantic roles & 50–950 ramp

primary
#9D34D1
secondary
#A5D38E
accent
#E64278
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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