#9B2DA2#9B2DA2

#9B2DA2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.1% C 0.197 H 325.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9B2DA2
RGBrgb(155, 45, 162)
HSLhsl(296, 57%, 41%)
HSVhsv(296, 72%, 64%)
CMYKcmyk(4.3%, 72.2%, 0%, 36.5%)
CIE-LABlab(40.34, 59.33, -40.24)
CIE-LCHlch(40.34, 71.69, 325.85°)
OKLaboklab(51.15% 0.1621 -0.1119)
OKLCHoklch(51.15% 0.197 325.4)
XYZxyz(20.9771, 11.4553, 35.2816)
Luminance0.1145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2DA2 #34A22D
analogous
#602DA2 #9B2DA2 #A22D6E
triadic
#9B2DA2 #A29B2D #2DA29B
tetradic
#9B2DA2 #A2602D #34A22D #2D6EA2
square
#9B2DA2 #A2602D #34A22D #2D6EA2
split-complementary
#9B2DA2 #6EA22D #2DA260
monochromatic
#3F1242 #6D2072 #9B2DA2 #C242CA #D272D8

Accessibility & contrast

On white

6.38
#9B2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9B2DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2DA2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2DA2#FFFFFF#000000##FFFFFF
##9B2DA21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C56A5
Deuteranopia (green-blind)
#46649F
Tritanopia (blue-blind)
#9F4065
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9b2da2;
/* rgb */ color: rgb(155, 45, 162);
/* oklch */ color: oklch(51.1% 0.197 325.4);
Tailwind
colors: {
  custom: {
    50: '#bc71be',
    500: '#9b2da2',
    950: '#000000',
  },
}
SCSS
$custom: #9b2da2;
$custom-light: #bc71be;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2da2",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 296.41,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51146,
    "c": 0.19695,
    "h": 325.4
  },
  "luminance": 0.11454
}

Semantic roles & 50–950 ramp

primary
#9B2DA2
secondary
#71BF6C
accent
#E04851
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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