#9D218B#9D218B

#9D218B is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.193 H 335.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9D218B
RGBrgb(157, 33, 139)
HSLhsl(309, 65%, 37%)
HSVhsv(309, 79%, 62%)
CMYKcmyk(0%, 79%, 11.5%, 38.4%)
CIE-LABlab(38.06, 59.89, -29.86)
CIE-LCHlch(38.06, 66.93, 333.50°)
OKLaboklab(49.17% 0.1749 -0.0817)
OKLCHoklch(49.17% 0.193 335)
XYZxyz(19.1089, 10.1216, 25.3684)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D218B #219D33
analogous
#71219D #9D218B #9D214D
triadic
#9D218B #8B9D21 #218B9D
tetradic
#9D218B #9D7121 #219D33 #214D9D
square
#9D218B #9D7121 #219D33 #214D9D
split-complementary
#9D218B #4D9D21 #219D71
monochromatic
#380C31 #6A165E #9D218B #D02CB8 #DD5CCA

Accessibility & contrast

On white

6.94
#9D218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D218B
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D218B#FFFFFF#000000##FFFFFF
##9D218B1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#4F6088
Tritanopia (blue-blind)
#A52D55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d218b;
/* rgb */ color: rgb(157, 33, 139);
/* oklch */ color: oklch(49.2% 0.193 335.0);
Tailwind
colors: {
  custom: {
    50: '#be6cad',
    500: '#9d218b',
    950: '#000000',
  },
}
SCSS
$custom: #9d218b;
$custom-light: #be6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d218b",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 308.71,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49169,
    "c": 0.19301,
    "h": 335
  },
  "luminance": 0.1012
}

Semantic roles & 50–950 ramp

primary
#9D218B
secondary
#59C168
accent
#E85840
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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