#9D1EB4#9D1EB4

#9D1EB4 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.5% C 0.226 H 320.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9D1EB4
RGBrgb(157, 30, 180)
HSLhsl(291, 71%, 41%)
HSVhsv(291, 83%, 71%)
CMYKcmyk(12.8%, 83.3%, 0%, 29.4%)
CIE-LABlab(40.23, 67.40, -51.11)
CIE-LCHlch(40.23, 84.58, 322.83°)
OKLaboklab(51.5% 0.175 -0.1435)
OKLCHoklch(51.5% 0.226 320.6)
XYZxyz(22.6061, 11.3932, 44.1795)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1EB4 #35B41E
analogous
#521EB4 #9D1EB4 #B41E80
triadic
#9D1EB4 #B49D1E #1EB49D
tetradic
#9D1EB4 #B4521E #35B41E #1E80B4
square
#9D1EB4 #B4521E #35B41E #1E80B4
split-complementary
#9D1EB4 #80B41E #1EB452
monochromatic
#410D4B #6F1580 #9D1EB4 #C332DD #D267E6

Accessibility & contrast

On white

6.41
#9D1EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9D1EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1EB4
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1EB4#FFFFFF#000000##FFFFFF
##9D1EB41.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#3163B1
Tritanopia (blue-blind)
#9E416C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d1eb4;
/* rgb */ color: rgb(157, 30, 180);
/* oklch */ color: oklch(51.5% 0.226 320.6);
Tailwind
colors: {
  custom: {
    50: '#be6ccb',
    500: '#9d1eb4',
    950: '#000000',
  },
}
SCSS
$custom: #9d1eb4;
$custom-light: #be6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1eb4",
  "rgb": {
    "r": 157,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 290.8,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51497,
    "c": 0.22629,
    "h": 320.6
  },
  "luminance": 0.11392
}

Semantic roles & 50–950 ramp

primary
#9D1EB4
secondary
#73CB63
accent
#EE3A55
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130813
muted
#827B82

Preview Lab

Preview with #9D1EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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