#9A34B2#9A34B2

#9A34B2 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.202 H 319.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9A34B2
RGBrgb(154, 52, 178)
HSLhsl(289, 55%, 45%)
HSVhsv(289, 71%, 70%)
CMYKcmyk(13.5%, 70.8%, 0%, 30.2%)
CIE-LABlab(42.06, 59.44, -47.01)
CIE-LCHlch(42.06, 75.78, 321.66°)
OKLaboklab(52.66% 0.1531 -0.1318)
OKLCHoklch(52.66% 0.202 319.3)
XYZxyz(22.5893, 12.5414, 43.3417)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A34B2 #4CB234
analogous
#5B34B2 #9A34B2 #B2348B
triadic
#9A34B2 #B29A34 #34B29A
tetradic
#9A34B2 #B25B34 #4CB234 #348BB2
square
#9A34B2 #B25B34 #4CB234 #348BB2
split-complementary
#9A34B2 #8BB234 #34B25B
monochromatic
#481853 #712683 #9A34B2 #B756CE #CB85DB

Accessibility & contrast

On white

5.99
#9A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9A34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A34B2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A34B2#FFFFFF#000000##FFFFFF
##9A34B21.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#9A4C70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9a34b2;
/* rgb */ color: rgb(154, 52, 178);
/* oklch */ color: oklch(52.7% 0.202 319.3);
Tailwind
colors: {
  custom: {
    50: '#bb75ca',
    500: '#9a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #9a34b2;
$custom-light: #bb75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9a34b2",
  "rgb": {
    "r": 154,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 288.571,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52658,
    "c": 0.20201,
    "h": 319.3
  },
  "luminance": 0.1254
}

Semantic roles & 50–950 ramp

primary
#9A34B2
secondary
#8BC57D
accent
#DE4A66
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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