#9D2F9A#9D2F9A

#9D2F9A is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.189 H 329.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9D2F9A
RGBrgb(157, 47, 154)
HSLhsl(302, 54%, 40%)
HSVhsv(302, 70%, 62%)
CMYKcmyk(0%, 70.1%, 1.9%, 38.4%)
CIE-LABlab(40.47, 57.69, -35.19)
CIE-LCHlch(40.47, 67.57, 328.61°)
OKLaboklab(51.16% 0.1622 -0.0972)
OKLCHoklch(51.16% 0.189 329.1)
XYZxyz(20.7537, 11.5357, 31.6991)
Luminance0.1153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F9A #2F9D32
analogous
#692F9D #9D2F9A #9D2F63
triadic
#9D2F9A #9A9D2F #2F9A9D
tetradic
#9D2F9A #9D692F #2F9D32 #2F639D
square
#9D2F9A #9D692F #2F9D32 #2F639D
split-complementary
#9D2F9A #639D2F #2F9D69
monochromatic
#3F133E #6E216C #9D2F9A #C743C3 #D572D2

Accessibility & contrast

On white

6.35
#9D2F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9D2F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F9A
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F9A#FFFFFF#000000##FFFFFF
##9D2F9A1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21569D
Deuteranopia (green-blind)
#4D6597
Tritanopia (blue-blind)
#A23E61
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d2f9a;
/* rgb */ color: rgb(157, 47, 154);
/* oklch */ color: oklch(51.2% 0.189 329.1);
Tailwind
colors: {
  custom: {
    50: '#bd72b8',
    500: '#9d2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f9a;
$custom-light: #bd72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f9a",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 301.636,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.18911,
    "h": 329.1
  },
  "luminance": 0.11534
}

Semantic roles & 50–950 ramp

primary
#9D2F9A
secondary
#6BBC6E
accent
#DD4F4B
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9D2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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