#9D2FA6#9D2FA6

#9D2FA6 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.199 H 324.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9D2FA6
RGBrgb(157, 47, 166)
HSLhsl(295, 56%, 42%)
HSVhsv(295, 72%, 65%)
CMYKcmyk(5.4%, 71.7%, 0%, 34.9%)
CIE-LABlab(41.15, 59.76, -41.32)
CIE-LCHlch(41.15, 72.66, 325.34°)
OKLaboklab(51.86% 0.1623 -0.115)
OKLCHoklch(51.86% 0.199 324.7)
XYZxyz(21.8035, 11.9557, 37.2283)
Luminance0.1195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FA6 #38A62F
analogous
#622FA6 #9D2FA6 #A62F74
triadic
#9D2FA6 #A69D2F #2FA69D
tetradic
#9D2FA6 #A6622F #38A62F #2F74A6
square
#9D2FA6 #A6622F #38A62F #2F74A6
split-complementary
#9D2FA6 #74A62F #2FA662
monochromatic
#431447 #702176 #9D2FA6 #C147CB #D177D8

Accessibility & contrast

On white

6.19
#9D2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9D2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FA6
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FA6#FFFFFF#000000##FFFFFF
##9D2FA61.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A59A9
Deuteranopia (green-blind)
#4666A3
Tritanopia (blue-blind)
#A04368
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2fa6;
/* rgb */ color: rgb(157, 47, 166);
/* oklch */ color: oklch(51.9% 0.199 324.7);
Tailwind
colors: {
  custom: {
    50: '#bd72c1',
    500: '#9d2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fa6;
$custom-light: #bd72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fa6",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 295.462,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51863,
    "c": 0.1989,
    "h": 324.7
  },
  "luminance": 0.11954
}

Semantic roles & 50–950 ramp

primary
#9D2FA6
secondary
#76C170
accent
#DF4954
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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