#9A34CB#9A34CB

#9A34CB is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.225 H 312.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9A34CB
RGBrgb(154, 52, 203)
HSLhsl(281, 59%, 50%)
HSVhsv(281, 74%, 80%)
CMYKcmyk(24.1%, 74.4%, 0%, 20.4%)
CIE-LABlab(43.71, 64.40, -58.98)
CIE-LCHlch(43.71, 87.33, 317.52°)
OKLaboklab(54.35% 0.1503 -0.1669)
OKLCHoklch(54.35% 0.225 312)
XYZxyz(25.3319, 13.6385, 57.7864)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A34CB #65CB34
analogous
#4F34CB #9A34CB #CB34B0
triadic
#9A34CB #CB9A34 #34CB9A
tetradic
#9A34CB #CB4F34 #65CB34 #34B0CB
square
#9A34CB #CB4F34 #65CB34 #34B0CB
split-complementary
#9A34CB #B0CB34 #34CB4F
monochromatic
#501B6A #75289A #9A34CB #B265D7 #CA95E4

Accessibility & contrast

On white

5.63
#9A34CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9A34CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A34CB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A34CB#FFFFFF#000000##FFFFFF
##9A34CB1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#1D69C8
Tritanopia (blue-blind)
#94577D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9a34cb;
/* rgb */ color: rgb(154, 52, 203);
/* oklch */ color: oklch(54.4% 0.225 312.0);
Tailwind
colors: {
  custom: {
    50: '#bc76dc',
    500: '#9a34cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a34cb;
$custom-light: #bc76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a34cb",
  "rgb": {
    "r": 154,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 280.53,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.54352,
    "c": 0.22455,
    "h": 312
  },
  "luminance": 0.13638
}

Semantic roles & 50–950 ramp

primary
#9A34CB
secondary
#A2CF8C
accent
#E24578
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A34CB

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

Preview Lab → · Contrast checker → · Palette generator →

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