#9D2FA1#9D2FA1

#9D2FA1 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.195 H 326.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9D2FA1
RGBrgb(157, 47, 161)
HSLhsl(298, 55%, 41%)
HSVhsv(298, 71%, 63%)
CMYKcmyk(2.5%, 70.8%, 0%, 36.9%)
CIE-LABlab(40.86, 58.88, -38.79)
CIE-LCHlch(40.86, 70.51, 326.62°)
OKLaboklab(51.56% 0.1623 -0.1076)
OKLCHoklch(51.56% 0.195 326.4)
XYZxyz(21.3538, 11.7758, 34.8595)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FA1 #33A12F
analogous
#642FA1 #9D2FA1 #A12F6C
triadic
#9D2FA1 #A19D2F #2FA19D
tetradic
#9D2FA1 #A1642F #33A12F #2F6CA1
square
#9D2FA1 #A1642F #33A12F #2F6CA1
split-complementary
#9D2FA1 #6CA12F #2FA164
monochromatic
#411342 #6F2172 #9D2FA1 #C445C9 #D374D6

Accessibility & contrast

On white

6.26
#9D2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D2FA1
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FA1#FFFFFF#000000##FFFFFF
##9D2FA11.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d2fa1;
/* rgb */ color: rgb(157, 47, 161);
/* oklch */ color: oklch(51.6% 0.195 326.4);
Tailwind
colors: {
  custom: {
    50: '#bd72bd',
    500: '#9d2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fa1;
$custom-light: #bd72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fa1",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 297.895,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51563,
    "c": 0.19478,
    "h": 326.4
  },
  "luminance": 0.11774
}

Semantic roles & 50–950 ramp

primary
#9D2FA1
secondary
#70BE6E
accent
#DE4A4F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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