#9D2FA8#9D2FA8

#9D2FA8 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.201 H 324.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9D2FA8
RGBrgb(157, 47, 168)
HSLhsl(295, 56%, 42%)
HSVhsv(295, 72%, 66%)
CMYKcmyk(6.5%, 72%, 0%, 34.1%)
CIE-LABlab(41.26, 60.12, -42.33)
CIE-LCHlch(41.26, 73.53, 324.85°)
OKLaboklab(51.99% 0.1622 -0.118)
OKLCHoklch(51.99% 0.201 324)
XYZxyz(21.9884, 12.0296, 38.2020)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FA8 #3AA82F
analogous
#602FA8 #9D2FA8 #A82F77
triadic
#9D2FA8 #A89D2F #2FA89D
tetradic
#9D2FA8 #A8602F #3AA82F #2F77A8
square
#9D2FA8 #A8602F #3AA82F #2F77A8
split-complementary
#9D2FA8 #77A82F #2FA860
monochromatic
#441448 #702278 #9D2FA8 #C048CC #D078D9

Accessibility & contrast

On white

6.17
#9D2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9D2FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FA8
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FA8#FFFFFF#000000##FFFFFF
##9D2FA81.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0359AB
Deuteranopia (green-blind)
#4566A5
Tritanopia (blue-blind)
#A04469
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2fa8;
/* rgb */ color: rgb(157, 47, 168);
/* oklch */ color: oklch(52.0% 0.201 324.0);
Tailwind
colors: {
  custom: {
    50: '#bd72c2',
    500: '#9d2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fa8;
$custom-light: #bd72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fa8",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 294.545,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51985,
    "c": 0.20057,
    "h": 324
  },
  "luminance": 0.12028
}

Semantic roles & 50–950 ramp

primary
#9D2FA8
secondary
#79C171
accent
#E04856
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9D2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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