#9D2EC2#9D2EC2

#9D2EC2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.224 H 315.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9D2EC2
RGBrgb(157, 46, 194)
HSLhsl(285, 62%, 47%)
HSVhsv(285, 76%, 76%)
CMYKcmyk(19.1%, 76.3%, 0%, 23.9%)
CIE-LABlab(42.79, 65.31, -55.21)
CIE-LCHlch(42.79, 85.52, 319.79°)
OKLaboklab(53.6% 0.1607 -0.1557)
OKLCHoklch(53.6% 0.224 315.9)
XYZxyz(24.6177, 13.0181, 52.2445)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EC2 #53C22E
analogous
#532EC2 #9D2EC2 #C22E9D
triadic
#9D2EC2 #C29D2E #2EC29D
tetradic
#9D2EC2 #C2532E #53C22E #2E9DC2
square
#9D2EC2 #C2532E #53C22E #2E9DC2
split-complementary
#9D2EC2 #9DC22E #2EC253
monochromatic
#4D175F #752291 #9D2EC2 #B756D7 #CC88E3

Accessibility & contrast

On white

5.83
#9D2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9D2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EC2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EC2#FFFFFF#000000##FFFFFF
##9D2EC21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#2B68BF
Tritanopia (blue-blind)
#9A4F77
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d2ec2;
/* rgb */ color: rgb(157, 46, 194);
/* oklch */ color: oklch(53.6% 0.224 315.9);
Tailwind
colors: {
  custom: {
    50: '#be73d5',
    500: '#9d2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ec2;
$custom-light: #be73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ec2",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 285,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53596,
    "c": 0.22375,
    "h": 315.9
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#9D2EC2
secondary
#93CC7F
accent
#E5436B
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9D2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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