#9D218F#9D218F

#9D218F is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.4% C 0.196 H 333.4°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#9D218F
RGBrgb(157, 33, 143)
HSLhsl(307, 65%, 37%)
HSVhsv(307, 79%, 62%)
CMYKcmyk(0%, 79%, 8.9%, 38.4%)
CIE-LABlab(38.27, 60.50, -31.98)
CIE-LCHlch(38.27, 68.43, 332.14°)
OKLaboklab(49.39% 0.1751 -0.0878)
OKLCHoklch(49.39% 0.196 333.4)
XYZxyz(19.4066, 10.2407, 26.9358)
Luminance0.1024 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D218F #219D2F
analogous
#6D219D #9D218F #9D2151
triadic
#9D218F #8F9D21 #218F9D
tetradic
#9D218F #9D6D21 #219D2F #21519D
square
#9D218F #9D6D21 #219D2F #21519D
split-complementary
#9D218F #519D21 #219D6D
monochromatic
#380C33 #6A1661 #9D218F #D02CBD #DD5CCE

Accessibility & contrast

On white

6.89
#9D218F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9D218F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D218F
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D218F#FFFFFF#000000##FFFFFF
##9D218F1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#4D608C
Tritanopia (blue-blind)
#A42F57
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d218f;
/* rgb */ color: rgb(157, 33, 143);
/* oklch */ color: oklch(49.4% 0.196 333.4);
Tailwind
colors: {
  custom: {
    50: '#be6cb0',
    500: '#9d218f',
    950: '#000000',
  },
}
SCSS
$custom: #9d218f;
$custom-light: #be6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d218f",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 306.774,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49389,
    "c": 0.19585,
    "h": 333.4
  },
  "luminance": 0.10239
}

Semantic roles & 50–950 ramp

primary
#9D218F
secondary
#59C165
accent
#E85340
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D218F

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

Preview Lab → · Contrast checker → · Palette generator →

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