#9D2CBB#9D2CBB

#9D2CBB is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.220 H 318.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9D2CBB
RGBrgb(157, 44, 187)
HSLhsl(287, 62%, 45%)
HSVhsv(287, 76%, 73%)
CMYKcmyk(16%, 76.5%, 0%, 26.7%)
CIE-LABlab(42.09, 64.64, -52.24)
CIE-LCHlch(42.09, 83.12, 321.06°)
OKLaboklab(52.95% 0.1634 -0.1469)
OKLCHoklch(52.95% 0.22 318)
XYZxyz(23.7737, 12.5584, 48.1758)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2CBB #4ABB2C
analogous
#562CBB #9D2CBB #BB2C91
triadic
#9D2CBB #BB9D2C #2CBB9D
tetradic
#9D2CBB #BB562C #4ABB2C #2C91BB
square
#9D2CBB #BB562C #4ABB2C #2C91BB
split-complementary
#9D2CBB #91BB2C #2CBB56
monochromatic
#4A1558 #732089 #9D2CBB #B94FD6 #CD80E1

Accessibility & contrast

On white

5.98
#9D2CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9D2CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2CBB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2CBB#FFFFFF#000000##FFFFFF
##9D2CBB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#3267B8
Tritanopia (blue-blind)
#9C4B73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d2cbb;
/* rgb */ color: rgb(157, 44, 187);
/* oklch */ color: oklch(53.0% 0.220 318.0);
Tailwind
colors: {
  custom: {
    50: '#be72d0',
    500: '#9d2cbb',
    950: '#000000',
  },
}
SCSS
$custom: #9d2cbb;
$custom-light: #be72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2cbb",
  "rgb": {
    "r": 157,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 287.413,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52953,
    "c": 0.21977,
    "h": 318
  },
  "luminance": 0.12557
}

Semantic roles & 50–950 ramp

primary
#9D2CBB
secondary
#8ACA79
accent
#E54365
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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