#9D2F9F#9D2F9F

#9D2F9F is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.193 H 327.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9D2F9F
RGBrgb(157, 47, 159)
HSLhsl(299, 54%, 40%)
HSVhsv(299, 70%, 62%)
CMYKcmyk(1.3%, 70.4%, 0%, 37.6%)
CIE-LABlab(40.74, 58.54, -37.77)
CIE-LCHlch(40.74, 69.66, 327.17°)
OKLaboklab(51.45% 0.1623 -0.1047)
OKLCHoklch(51.45% 0.193 327.2)
XYZxyz(21.1788, 11.7058, 33.9381)
Luminance0.1170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F9F #319F2F
analogous
#652F9F #9D2F9F #9F2F69
triadic
#9D2F9F #9F9D2F #2F9F9D
tetradic
#9D2F9F #9F652F #319F2F #2F699F
square
#9D2F9F #9F652F #319F2F #2F699F
split-complementary
#9D2F9F #699F2F #2F9F65
monochromatic
#401341 #6E2170 #9D2F9F #C544C8 #D473D6

Accessibility & contrast

On white

6.29
#9D2F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9D2F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F9F
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F9F#FFFFFF#000000##FFFFFF
##9D2F9F1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A57A2
Deuteranopia (green-blind)
#4A659C
Tritanopia (blue-blind)
#A24064
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d2f9f;
/* rgb */ color: rgb(157, 47, 159);
/* oklch */ color: oklch(51.4% 0.193 327.2);
Tailwind
colors: {
  custom: {
    50: '#bd72bc',
    500: '#9d2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f9f;
$custom-light: #bd72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f9f",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 298.929,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51446,
    "c": 0.19315,
    "h": 327.2
  },
  "luminance": 0.11704
}

Semantic roles & 50–950 ramp

primary
#9D2F9F
secondary
#6EBD6D
accent
#DE4A4D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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