#9D18A1#9D18A1

#9D18A1 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.216 H 326.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#9D18A1
RGBrgb(157, 24, 161)
HSLhsl(298, 74%, 36%)
HSVhsv(298, 85%, 63%)
CMYKcmyk(2.5%, 85.1%, 0%, 36.9%)
CIE-LABlab(38.54, 65.55, -42.48)
CIE-LCHlch(38.54, 78.11, 327.05°)
OKLaboklab(49.92% 0.181 -0.1182)
OKLCHoklch(49.92% 0.216 326.8)
XYZxyz(20.6639, 10.3961, 34.6296)
Luminance0.1040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D18A1 #1CA118
analogous
#5918A1 #9D18A1 #A11861
triadic
#9D18A1 #A19D18 #18A19D
tetradic
#9D18A1 #A15918 #1CA118 #1861A1
square
#9D18A1 #A15918 #1CA118 #1861A1
split-complementary
#9D18A1 #61A118 #18A159
monochromatic
#350836 #69106C #9D18A1 #D120D6 #E04FE5

Accessibility & contrast

On white

6.82
#9D18A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9D18A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D18A1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D18A1#FFFFFF#000000##FFFFFF
##9D18A11.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#3F609E
Tritanopia (blue-blind)
#A23460
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d18a1;
/* rgb */ color: rgb(157, 24, 161);
/* oklch */ color: oklch(49.9% 0.216 326.8);
Tailwind
colors: {
  custom: {
    50: '#be6abd',
    500: '#9d18a1',
    950: '#000000',
  },
}
SCSS
$custom: #9d18a1;
$custom-light: #be6abd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d18a1",
  "rgb": {
    "r": 157,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 298.248,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49917,
    "c": 0.21618,
    "h": 326.8
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#9D18A1
secondary
#51C74E
accent
#F1373D
background
#FCF6FB
surface
#F8ECF7
border
#D1C7D0
text
#130712
muted
#827A81

Preview Lab

Preview with #9D18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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