#9D2FB8#9D2FB8

#9D2FB8 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.214 H 318.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9D2FB8
RGBrgb(157, 47, 184)
HSLhsl(288, 59%, 45%)
HSVhsv(288, 74%, 72%)
CMYKcmyk(14.7%, 74.5%, 0%, 27.8%)
CIE-LABlab(42.25, 63.06, -50.22)
CIE-LCHlch(42.25, 80.61, 321.46°)
OKLaboklab(53.01% 0.1611 -0.141)
OKLCHoklch(53.01% 0.214 318.8)
XYZxyz(23.5717, 12.6629, 46.5407)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FB8 #4AB82F
analogous
#582FB8 #9D2FB8 #B82F8E
triadic
#9D2FB8 #B89D2F #2FB89D
tetradic
#9D2FB8 #B8582F #4AB82F #2F8EB8
square
#9D2FB8 #B8582F #4AB82F #2F8EB8
split-complementary
#9D2FB8 #8EB82F #2FB858
monochromatic
#4A1657 #732387 #9D2FB8 #B952D3 #CD82DF

Accessibility & contrast

On white

5.94
#9D2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9D2FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FB8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FB8#FFFFFF#000000##FFFFFF
##9D2FB81.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#3867B5
Tritanopia (blue-blind)
#9D4B72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d2fb8;
/* rgb */ color: rgb(157, 47, 184);
/* oklch */ color: oklch(53.0% 0.214 318.8);
Tailwind
colors: {
  custom: {
    50: '#be73ce',
    500: '#9d2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fb8;
$custom-light: #be73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fb8",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 288.175,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53005,
    "c": 0.21412,
    "h": 318.8
  },
  "luminance": 0.12662
}

Semantic roles & 50–950 ramp

primary
#9D2FB8
secondary
#8AC87B
accent
#E24564
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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