#9B34D2#9B34D2

#9B34D2 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 55.0% C 0.231 H 310.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9B34D2
RGBrgb(155, 52, 210)
HSLhsl(279, 64%, 51%)
HSVhsv(279, 75%, 82%)
CMYKcmyk(26.2%, 75.2%, 0%, 17.6%)
CIE-LABlab(44.34, 66.03, -61.98)
CIE-LCHlch(44.34, 90.56, 316.81°)
OKLaboklab(54.98% 0.1504 -0.1757)
OKLCHoklch(54.98% 0.231 310.6)
XYZxyz(26.3762, 14.0783, 62.2882)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B34D2 #6BD234
analogous
#4C34D2 #9B34D2 #D234BA
triadic
#9B34D2 #D29B34 #34D29B
tetradic
#9B34D2 #D24C34 #6BD234 #34BAD2
square
#9B34D2 #D24C34 #6BD234 #34BAD2
split-complementary
#9B34D2 #BAD234 #34D24C
monochromatic
#531972 #7824A4 #9B34D2 #B466DD #CC98E8

Accessibility & contrast

On white

5.50
#9B34D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9B34D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B34D2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B34D2#FFFFFF#000000##FFFFFF
##9B34D21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0A6ACF
Tritanopia (blue-blind)
#935A81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b34d2;
/* rgb */ color: rgb(155, 52, 210);
/* oklch */ color: oklch(55.0% 0.231 310.6);
Tailwind
colors: {
  custom: {
    50: '#be76e1',
    500: '#9b34d2',
    950: '#000000',
  },
}
SCSS
$custom: #9b34d2;
$custom-light: #be76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b34d2",
  "rgb": {
    "r": 155,
    "g": 52,
    "b": 210
  },
  "hsl": {
    "h": 279.114,
    "s": 63.71,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54985,
    "c": 0.23122,
    "h": 310.6
  },
  "luminance": 0.14078
}

Semantic roles & 50–950 ramp

primary
#9B34D2
secondary
#A6D48E
accent
#E7417B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B34D2

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

Preview Lab → · Contrast checker → · Palette generator →

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