#9B2EC2#9B2EC2

#9B2EC2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.223 H 315.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9B2EC2
RGBrgb(155, 46, 194)
HSLhsl(284, 62%, 47%)
HSVhsv(284, 76%, 76%)
CMYKcmyk(20.1%, 76.3%, 0%, 23.9%)
CIE-LABlab(42.49, 64.93, -55.72)
CIE-LCHlch(42.49, 85.56, 319.37°)
OKLaboklab(53.32% 0.1583 -0.1572)
OKLCHoklch(53.32% 0.223 315.2)
XYZxyz(24.2306, 12.8185, 52.2263)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2EC2 #55C22E
analogous
#512EC2 #9B2EC2 #C22E9F
triadic
#9B2EC2 #C29B2E #2EC29B
tetradic
#9B2EC2 #C2512E #55C22E #2E9FC2
square
#9B2EC2 #C2512E #55C22E #2E9FC2
split-complementary
#9B2EC2 #9FC22E #2EC251
monochromatic
#4C175F #732291 #9B2EC2 #B556D7 #CB88E3

Accessibility & contrast

On white

5.89
#9B2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9B2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2EC2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2EC2#FFFFFF#000000##FFFFFF
##9B2EC21.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#2867BF
Tritanopia (blue-blind)
#985077
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9b2ec2;
/* rgb */ color: rgb(155, 46, 194);
/* oklch */ color: oklch(53.3% 0.223 315.2);
Tailwind
colors: {
  custom: {
    50: '#bd73d5',
    500: '#9b2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #9b2ec2;
$custom-light: #bd73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2ec2",
  "rgb": {
    "r": 155,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 284.189,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53322,
    "c": 0.22307,
    "h": 315.2
  },
  "luminance": 0.12818
}

Semantic roles & 50–950 ramp

primary
#9B2EC2
secondary
#94CC7F
accent
#E5436E
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9B2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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