#9D2EA1#9D2EA1

#9D2EA1 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.196 H 326.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9D2EA1
RGBrgb(157, 46, 161)
HSLhsl(298, 56%, 41%)
HSVhsv(298, 71%, 63%)
CMYKcmyk(2.5%, 71.4%, 0%, 36.9%)
CIE-LABlab(40.73, 59.25, -38.99)
CIE-LCHlch(40.73, 70.93, 326.65°)
OKLaboklab(51.47% 0.1633 -0.1082)
OKLCHoklch(51.47% 0.196 326.5)
XYZxyz(21.3143, 11.6967, 34.8464)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EA1 #32A12E
analogous
#632EA1 #9D2EA1 #A12E6B
triadic
#9D2EA1 #A19D2E #2EA19D
tetradic
#9D2EA1 #A1632E #32A12E #2E6BA1
square
#9D2EA1 #A1632E #32A12E #2E6BA1
split-complementary
#9D2EA1 #6BA12E #2EA163
monochromatic
#401342 #6F2071 #9D2EA1 #C543C9 #D373D7

Accessibility & contrast

On white

6.29
#9D2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9D2EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EA1
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EA1#FFFFFF#000000##FFFFFF
##9D2EA11.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1457A4
Deuteranopia (green-blind)
#49659E
Tritanopia (blue-blind)
#A14065
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d2ea1;
/* rgb */ color: rgb(157, 46, 161);
/* oklch */ color: oklch(51.5% 0.196 326.5);
Tailwind
colors: {
  custom: {
    50: '#bd72bd',
    500: '#9d2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ea1;
$custom-light: #bd72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ea1",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 297.913,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51472,
    "c": 0.19594,
    "h": 326.5
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#9D2EA1
secondary
#6FBE6C
accent
#DF494E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9D2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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