#9D2EA7#9D2EA7

#9D2EA7 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.8% C 0.201 H 324.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9D2EA7
RGBrgb(157, 46, 167)
HSLhsl(295, 57%, 42%)
HSVhsv(295, 72%, 65%)
CMYKcmyk(6%, 72.5%, 0%, 34.5%)
CIE-LABlab(41.08, 60.30, -42.03)
CIE-LCHlch(41.08, 73.50, 325.12°)
OKLaboklab(51.83% 0.1632 -0.1171)
OKLCHoklch(51.83% 0.201 324.4)
XYZxyz(21.8561, 11.9135, 37.7001)
Luminance0.1191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EA7 #38A72E
analogous
#602EA7 #9D2EA7 #A72E75
triadic
#9D2EA7 #A79D2E #2EA79D
tetradic
#9D2EA7 #A7602E #38A72E #2E75A7
square
#9D2EA7 #A7602E #38A72E #2E75A7
split-complementary
#9D2EA7 #75A72E #2EA760
monochromatic
#431447 #702177 #9D2EA7 #C146CC #D176D9

Accessibility & contrast

On white

6.21
#9D2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9D2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EA7
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EA7#FFFFFF#000000##FFFFFF
##9D2EA71.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358AA
Deuteranopia (green-blind)
#4565A4
Tritanopia (blue-blind)
#A04368
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2ea7;
/* rgb */ color: rgb(157, 46, 167);
/* oklch */ color: oklch(51.8% 0.201 324.4);
Tailwind
colors: {
  custom: {
    50: '#be72c2',
    500: '#9d2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ea7;
$custom-light: #be72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ea7",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 295.041,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51833,
    "c": 0.20087,
    "h": 324.4
  },
  "luminance": 0.11912
}

Semantic roles & 50–950 ramp

primary
#9D2EA7
secondary
#76C170
accent
#E04854
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9D2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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