#9D2FA7#9D2FA7

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

Color values

HEX#9D2FA7
RGBrgb(157, 47, 167)
HSLhsl(295, 56%, 42%)
HSVhsv(295, 72%, 65%)
CMYKcmyk(6%, 71.9%, 0%, 34.5%)
CIE-LABlab(41.20, 59.94, -41.83)
CIE-LCHlch(41.20, 73.09, 325.09°)
OKLaboklab(51.92% 0.1622 -0.1165)
OKLCHoklch(51.92% 0.2 324.3)
XYZxyz(21.8956, 11.9925, 37.7132)
Luminance0.1199 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FA7 #39A72F
analogous
#612FA7 #9D2FA7 #A72F75
triadic
#9D2FA7 #A79D2F #2FA79D
tetradic
#9D2FA7 #A7612F #39A72F #2F75A7
square
#9D2FA7 #A7612F #39A72F #2F75A7
split-complementary
#9D2FA7 #75A72F #2FA761
monochromatic
#431447 #702277 #9D2FA7 #C048CB #D178D9

Accessibility & contrast

On white

6.18
#9D2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FA7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FA7#FFFFFF#000000##FFFFFF
##9D2FA71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0759AA
Deuteranopia (green-blind)
#4566A4
Tritanopia (blue-blind)
#A04468
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2fa7;
/* rgb */ color: rgb(157, 47, 167);
/* oklch */ color: oklch(51.9% 0.200 324.3);
Tailwind
colors: {
  custom: {
    50: '#bd72c2',
    500: '#9d2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fa7;
$custom-light: #bd72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fa7",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 295,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51923,
    "c": 0.19973,
    "h": 324.3
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

primary
#9D2FA7
secondary
#78C171
accent
#DF4855
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120912
muted
#817B81

Preview Lab

Preview with #9D2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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