#9B2ECC#9B2ECC

#9B2ECC is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.232 H 312.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9B2ECC
RGBrgb(155, 46, 204)
HSLhsl(281, 63%, 49%)
HSVhsv(281, 77%, 80%)
CMYKcmyk(24%, 77.5%, 0%, 20%)
CIE-LABlab(43.19, 66.91, -60.40)
CIE-LCHlch(43.19, 90.14, 317.93°)
OKLaboklab(54.03% 0.1565 -0.171)
OKLCHoklch(54.03% 0.232 312.5)
XYZxyz(25.3917, 13.2829, 58.3413)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2ECC #5FCC2E
analogous
#4C2ECC #9B2ECC #CC2EAE
triadic
#9B2ECC #CC9B2E #2ECC9B
tetradic
#9B2ECC #CC4C2E #5FCC2E #2EAECC
square
#9B2ECC #CC4C2E #5FCC2E #2EAECC
split-complementary
#9B2ECC #AECC2E #2ECC4C
monochromatic
#4F1768 #75239A #9B2ECC #B35DDA #CB8FE6

Accessibility & contrast

On white

5.74
#9B2ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9B2ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2ECC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2ECC#FFFFFF#000000##FFFFFF
##9B2ECC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#1268C9
Tritanopia (blue-blind)
#95547D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9b2ecc;
/* rgb */ color: rgb(155, 46, 204);
/* oklch */ color: oklch(54.0% 0.232 312.5);
Tailwind
colors: {
  custom: {
    50: '#bd73dc',
    500: '#9b2ecc',
    950: '#000000',
  },
}
SCSS
$custom: #9b2ecc;
$custom-light: #bd73dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2ecc",
  "rgb": {
    "r": 155,
    "g": 46,
    "b": 204
  },
  "hsl": {
    "h": 281.392,
    "s": 63.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54034,
    "c": 0.2318,
    "h": 312.5
  },
  "luminance": 0.13282
}

Semantic roles & 50–950 ramp

primary
#9B2ECC
secondary
#9DD086
accent
#E64275
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B2ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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