#9F2DA7#9F2DA7

#9F2DA7 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.203 H 325.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9F2DA7
RGBrgb(159, 45, 167)
HSLhsl(296, 58%, 42%)
HSVhsv(296, 73%, 65%)
CMYKcmyk(4.8%, 73.1%, 0%, 34.5%)
CIE-LABlab(41.28, 61.08, -41.69)
CIE-LCHlch(41.28, 73.96, 325.69°)
OKLaboklab(52.04% 0.1665 -0.116)
OKLCHoklch(52.04% 0.203 325.1)
XYZxyz(22.2110, 12.0392, 37.7056)
Luminance0.1204 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DA7 #35A72D
analogous
#622DA7 #9F2DA7 #A72D72
triadic
#9F2DA7 #A79F2D #2DA79F
tetradic
#9F2DA7 #A7622D #35A72D #2D72A7
square
#9F2DA7 #A7622D #35A72D #2D72A7
split-complementary
#9F2DA7 #72A72D #2DA762
monochromatic
#431347 #712077 #9F2DA7 #C444CD #D375DA

Accessibility & contrast

On white

6.16
#9F2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9F2DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DA7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DA7#FFFFFF#000000##FFFFFF
##9F2DA71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0458AA
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#A34268
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f2da7;
/* rgb */ color: rgb(159, 45, 167);
/* oklch */ color: oklch(52.0% 0.203 325.1);
Tailwind
colors: {
  custom: {
    50: '#bf72c2',
    500: '#9f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2da7;
$custom-light: #bf72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2da7",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 296.066,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52039,
    "c": 0.2029,
    "h": 325.1
  },
  "luminance": 0.12038
}

Semantic roles & 50–950 ramp

primary
#9F2DA7
secondary
#74C16E
accent
#E14751
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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