#9D34A2#9D34A2

#9D34A2 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.1% C 0.190 H 326.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9D34A2
RGBrgb(157, 52, 162)
HSLhsl(297, 51%, 42%)
HSVhsv(297, 68%, 64%)
CMYKcmyk(3.1%, 67.9%, 0%, 36.5%)
CIE-LABlab(41.59, 57.16, -38.23)
CIE-LCHlch(41.59, 68.77, 326.22°)
OKLaboklab(52.11% 0.157 -0.1061)
OKLCHoklch(52.11% 0.19 326)
XYZxyz(21.6538, 12.2341, 35.3963)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D34A2 #39A234
analogous
#6634A2 #9D34A2 #A23470
triadic
#9D34A2 #A29D34 #34A29D
tetradic
#9D34A2 #A26634 #39A234 #3470A2
square
#9D34A2 #A26634 #39A234 #3470A2
split-complementary
#9D34A2 #70A234 #34A266
monochromatic
#431645 #702574 #9D34A2 #C04DC6 #D17CD5

Accessibility & contrast

On white

6.09
#9D34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9D34A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D34A2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D34A2#FFFFFF#000000##FFFFFF
##9D34A21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#4B679F
Tritanopia (blue-blind)
#A14567
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d34a2;
/* rgb */ color: rgb(157, 52, 162);
/* oklch */ color: oklch(52.1% 0.190 326.0);
Tailwind
colors: {
  custom: {
    50: '#bd74be',
    500: '#9d34a2',
    950: '#000000',
  },
}
SCSS
$custom: #9d34a2;
$custom-light: #bd74be;
$custom-dark: #000000;
JSON
{
  "hex": "#9d34a2",
  "rgb": {
    "r": 157,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 297.273,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52105,
    "c": 0.1895,
    "h": 326
  },
  "luminance": 0.12233
}

Semantic roles & 50–950 ramp

primary
#9D34A2
secondary
#78BE74
accent
#DB4D53
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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