#9D1BD2#9D1BD2

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

Color values

HEX#9D1BD2
RGBrgb(157, 27, 210)
HSLhsl(283, 77%, 46%)
HSVhsv(283, 87%, 82%)
CMYKcmyk(25.2%, 87.1%, 0%, 17.6%)
CIE-LABlab(42.16, 73.57, -65.51)
CIE-LCHlch(42.16, 98.51, 318.31°)
OKLaboklab(53.52% 0.1702 -0.1858)
OKLCHoklch(53.52% 0.252 312.5)
XYZxyz(25.9273, 12.6059, 62.0277)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1BD2 #50D21B
analogous
#421BD2 #9D1BD2 #D21BAC
triadic
#9D1BD2 #D29D1B #1BD29D
tetradic
#9D1BD2 #D2421B #50D21B #1BACD2
square
#9D1BD2 #D2421B #50D21B #1BACD2
split-complementary
#9D1BD2 #ACD21B #1BD242
monochromatic
#4C0D66 #74149C #9D1BD2 #B843E7 #CC7AEE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D1BD2#FFFFFF#000000##FFFFFF
##9D1BD21.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)
#005ED7
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#974F7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d1bd2;
/* rgb */ color: rgb(157, 27, 210);
/* oklch */ color: oklch(53.5% 0.252 312.5);
Tailwind
colors: {
  custom: {
    50: '#c06de1',
    500: '#9d1bd2',
    950: '#000000',
  },
}
SCSS
$custom: #9d1bd2;
$custom-light: #c06de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1bd2",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 210
  },
  "hsl": {
    "h": 282.623,
    "s": 77.215,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5352,
    "c": 0.25194,
    "h": 312.5
  },
  "luminance": 0.12605
}

Semantic roles & 50–950 ramp

primary
#9D1BD2
secondary
#90D573
accent
#F4346C
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9D1BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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