#9D2FB7#9D2FB7

#9D2FB7 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.213 H 319.1°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9D2FB7
RGBrgb(157, 47, 183)
HSLhsl(289, 59%, 45%)
HSVhsv(289, 74%, 72%)
CMYKcmyk(14.2%, 74.3%, 0%, 28.2%)
CIE-LABlab(42.19, 62.87, -49.74)
CIE-LCHlch(42.19, 80.16, 321.65°)
OKLaboklab(52.94% 0.1612 -0.1396)
OKLCHoklch(52.94% 0.213 319.1)
XYZxyz(23.4673, 12.6212, 45.9906)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FB7 #49B72F
analogous
#592FB7 #9D2FB7 #B72F8D
triadic
#9D2FB7 #B79D2F #2FB79D
tetradic
#9D2FB7 #B7592F #49B72F #2F8DB7
square
#9D2FB7 #B7592F #49B72F #2F8DB7
split-complementary
#9D2FB7 #8DB72F #2FB759
monochromatic
#491656 #732286 #9D2FB7 #BA51D2 #CD82DF

Accessibility & contrast

On white

5.96
#9D2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9D2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FB7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FB7#FFFFFF#000000##FFFFFF
##9D2FB71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3967B4
Tritanopia (blue-blind)
#9D4B71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d2fb7;
/* rgb */ color: rgb(157, 47, 183);
/* oklch */ color: oklch(52.9% 0.213 319.1);
Tailwind
colors: {
  custom: {
    50: '#be73cd',
    500: '#9d2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fb7;
$custom-light: #be73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fb7",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 288.529,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52939,
    "c": 0.21326,
    "h": 319.1
  },
  "luminance": 0.1262
}

Semantic roles & 50–950 ramp

primary
#9D2FB7
secondary
#89C87A
accent
#E24563
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9D2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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