#9D218E#9D218E

#9D218E is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.195 H 333.8°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#9D218E
RGBrgb(157, 33, 142)
HSLhsl(307, 65%, 37%)
HSVhsv(307, 79%, 62%)
CMYKcmyk(0%, 79%, 9.6%, 38.4%)
CIE-LABlab(38.22, 60.35, -31.45)
CIE-LCHlch(38.22, 68.05, 332.47°)
OKLaboklab(49.33% 0.175 -0.0863)
OKLCHoklch(49.33% 0.195 333.8)
XYZxyz(19.3311, 10.2105, 26.5387)
Luminance0.1021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D218E #219D30
analogous
#6E219D #9D218E #9D2150
triadic
#9D218E #8E9D21 #218E9D
tetradic
#9D218E #9D6E21 #219D30 #21509D
square
#9D218E #9D6E21 #219D30 #21509D
split-complementary
#9D218E #509D21 #219D6E
monochromatic
#380C33 #6A1660 #9D218E #D02CBC #DD5CCD

Accessibility & contrast

On white

6.90
#9D218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9D218E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D218E
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D218E#FFFFFF#000000##FFFFFF
##9D218E1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4F91
Deuteranopia (green-blind)
#4E608B
Tritanopia (blue-blind)
#A52E57
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d218e;
/* rgb */ color: rgb(157, 33, 142);
/* oklch */ color: oklch(49.3% 0.195 333.8);
Tailwind
colors: {
  custom: {
    50: '#be6caf',
    500: '#9d218e',
    950: '#000000',
  },
}
SCSS
$custom: #9d218e;
$custom-light: #be6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d218e",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 307.258,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49334,
    "c": 0.19513,
    "h": 333.8
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#9D218E
secondary
#59C165
accent
#E85440
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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