#9D218A#9D218A

#9D218A is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.192 H 335.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9D218A
RGBrgb(157, 33, 138)
HSLhsl(309, 65%, 37%)
HSVhsv(309, 79%, 62%)
CMYKcmyk(0%, 79%, 12.1%, 38.4%)
CIE-LABlab(38.01, 59.75, -29.33)
CIE-LCHlch(38.01, 66.56, 333.86°)
OKLaboklab(49.11% 0.1748 -0.0802)
OKLCHoklch(49.11% 0.192 335.4)
XYZxyz(19.0362, 10.0925, 24.9853)
Luminance0.1009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D218A #219D34
analogous
#72219D #9D218A #9D214C
triadic
#9D218A #8A9D21 #218A9D
tetradic
#9D218A #9D7221 #219D34 #214C9D
square
#9D218A #9D7221 #219D34 #214C9D
split-complementary
#9D218A #4C9D21 #219D72
monochromatic
#380C31 #6A165E #9D218A #D02CB6 #DD5CC9

Accessibility & contrast

On white

6.96
#9D218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9D218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D218A
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D218A#FFFFFF#000000##FFFFFF
##9D218A1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8D
Deuteranopia (green-blind)
#4F6087
Tritanopia (blue-blind)
#A52C54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d218a;
/* rgb */ color: rgb(157, 33, 138);
/* oklch */ color: oklch(49.1% 0.192 335.4);
Tailwind
colors: {
  custom: {
    50: '#be6bac',
    500: '#9d218a',
    950: '#000000',
  },
}
SCSS
$custom: #9d218a;
$custom-light: #be6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d218a",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 309.194,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49115,
    "c": 0.19231,
    "h": 335.4
  },
  "luminance": 0.10091
}

Semantic roles & 50–950 ramp

primary
#9D218A
secondary
#59C169
accent
#E85940
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D218A

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

Preview Lab → · Contrast checker → · Palette generator →

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