#9D2EA2#9D2EA2

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

Color values

HEX#9D2EA2
RGBrgb(157, 46, 162)
HSLhsl(297, 56%, 41%)
HSVhsv(297, 72%, 64%)
CMYKcmyk(3.1%, 71.6%, 0%, 36.5%)
CIE-LABlab(40.79, 59.42, -39.50)
CIE-LCHlch(40.79, 71.35, 326.38°)
OKLaboklab(51.53% 0.1633 -0.1097)
OKLCHoklch(51.53% 0.197 326.1)
XYZxyz(21.4028, 11.7321, 35.3126)
Luminance0.1173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EA2 #33A22E
analogous
#632EA2 #9D2EA2 #A22E6D
triadic
#9D2EA2 #A29D2E #2EA29D
tetradic
#9D2EA2 #A2632E #33A22E #2E6DA2
square
#9D2EA2 #A2632E #33A22E #2E6DA2
split-complementary
#9D2EA2 #6DA22E #2EA263
monochromatic
#411343 #6F2072 #9D2EA2 #C443CA #D373D7

Accessibility & contrast

On white

6.28
#9D2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9D2EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EA2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EA2#FFFFFF#000000##FFFFFF
##9D2EA21.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A5
Deuteranopia (green-blind)
#48659F
Tritanopia (blue-blind)
#A14165
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d2ea2;
/* rgb */ color: rgb(157, 46, 162);
/* oklch */ color: oklch(51.5% 0.197 326.1);
Tailwind
colors: {
  custom: {
    50: '#bd72be',
    500: '#9d2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ea2;
$custom-light: #bd72be;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ea2",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 297.414,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51531,
    "c": 0.19676,
    "h": 326.1
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#9D2EA2
secondary
#70BF6D
accent
#DF494F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9D2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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