#9D2FA5#9D2FA5

#9D2FA5 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.8% C 0.198 H 325.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9D2FA5
RGBrgb(157, 47, 165)
HSLhsl(296, 56%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(4.8%, 71.5%, 0%, 35.3%)
CIE-LABlab(41.09, 59.58, -40.82)
CIE-LCHlch(41.09, 72.23, 325.59°)
OKLaboklab(51.8% 0.1623 -0.1135)
OKLCHoklch(51.8% 0.198 325)
XYZxyz(21.7122, 11.9191, 36.7470)
Luminance0.1192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FA5 #37A52F
analogous
#622FA5 #9D2FA5 #A52F72
triadic
#9D2FA5 #A59D2F #2FA59D
tetradic
#9D2FA5 #A5622F #37A52F #2F72A5
square
#9D2FA5 #A5622F #37A52F #2F72A5
split-complementary
#9D2FA5 #72A52F #2FA562
monochromatic
#421446 #702175 #9D2FA5 #C247CB #D176D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D2FA5#FFFFFF#000000##FFFFFF
##9D2FA51.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)
#0D58A8
Deuteranopia (green-blind)
#4765A2
Tritanopia (blue-blind)
#A04367
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2fa5;
/* rgb */ color: rgb(157, 47, 165);
/* oklch */ color: oklch(51.8% 0.198 325.0);
Tailwind
colors: {
  custom: {
    50: '#bd72c0',
    500: '#9d2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fa5;
$custom-light: #bd72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fa5",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 295.932,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51802,
    "c": 0.19807,
    "h": 325
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#9D2FA5
secondary
#75C070
accent
#DF4953
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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