#9B2EB7#9B2EB7

#9B2EB7 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.214 H 318.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B2EB7
RGBrgb(155, 46, 183)
HSLhsl(288, 60%, 45%)
HSVhsv(288, 75%, 72%)
CMYKcmyk(15.3%, 74.9%, 0%, 28.2%)
CIE-LABlab(41.76, 62.82, -50.45)
CIE-LCHlch(41.76, 80.57, 321.23°)
OKLaboklab(52.57% 0.1597 -0.1417)
OKLCHoklch(52.57% 0.214 318.4)
XYZxyz(23.0406, 12.3425, 45.9593)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2EB7 #4AB72E
analogous
#562EB7 #9B2EB7 #B72E8F
triadic
#9B2EB7 #B79B2E #2EB79B
tetradic
#9B2EB7 #B7562E #4AB72E #2E8FB7
square
#9B2EB7 #B7562E #4AB72E #2E8FB7
split-complementary
#9B2EB7 #8FB72E #2EB756
monochromatic
#481555 #722286 #9B2EB7 #B84FD3 #CC80DF

Accessibility & contrast

On white

6.06
#9B2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9B2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2EB7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2EB7#FFFFFF#000000##FFFFFF
##9B2EB71.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3566B4
Tritanopia (blue-blind)
#9A4B71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b2eb7;
/* rgb */ color: rgb(155, 46, 183);
/* oklch */ color: oklch(52.6% 0.214 318.4);
Tailwind
colors: {
  custom: {
    50: '#bd72cd',
    500: '#9b2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #9b2eb7;
$custom-light: #bd72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2eb7",
  "rgb": {
    "r": 155,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 287.737,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52571,
    "c": 0.21354,
    "h": 318.4
  },
  "luminance": 0.12341
}

Semantic roles & 50–950 ramp

primary
#9B2EB7
secondary
#89C879
accent
#E34565
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9B2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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