#9D34B2#9D34B2

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

Color values

HEX#9D34B2
RGBrgb(157, 52, 178)
HSLhsl(290, 55%, 45%)
HSVhsv(290, 71%, 70%)
CMYKcmyk(11.8%, 70.8%, 0%, 30.2%)
CIE-LABlab(42.52, 60.09, -46.26)
CIE-LCHlch(42.52, 75.83, 322.41°)
OKLaboklab(53.08% 0.1567 -0.1295)
OKLCHoklch(53.08% 0.203 320.4)
XYZxyz(23.1675, 12.8396, 43.3688)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D34B2 #49B234
analogous
#5E34B2 #9D34B2 #B23488
triadic
#9D34B2 #B29D34 #34B29D
tetradic
#9D34B2 #B25E34 #49B234 #3488B2
square
#9D34B2 #B25E34 #49B234 #3488B2
split-complementary
#9D34B2 #88B234 #34B25E
monochromatic
#491853 #732683 #9D34B2 #BA56CE #CD85DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D34B2#FFFFFF#000000##FFFFFF
##9D34B21.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)
#005DB6
Deuteranopia (green-blind)
#4068AF
Tritanopia (blue-blind)
#9E4B70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d34b2;
/* rgb */ color: rgb(157, 52, 178);
/* oklch */ color: oklch(53.1% 0.203 320.4);
Tailwind
colors: {
  custom: {
    50: '#be75ca',
    500: '#9d34b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d34b2;
$custom-light: #be75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9d34b2",
  "rgb": {
    "r": 157,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 290,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53076,
    "c": 0.20328,
    "h": 320.4
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#9D34B2
secondary
#89C57D
accent
#DE4A62
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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