#9D218D#9D218D

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

Color values

HEX#9D218D
RGBrgb(157, 33, 141)
HSLhsl(308, 65%, 37%)
HSVhsv(308, 79%, 62%)
CMYKcmyk(0%, 79%, 10.2%, 38.4%)
CIE-LABlab(38.16, 60.19, -30.92)
CIE-LCHlch(38.16, 67.67, 332.81°)
OKLaboklab(49.28% 0.175 -0.0848)
OKLCHoklch(49.28% 0.194 334.2)
XYZxyz(19.2564, 10.1806, 26.1450)
Luminance0.1018 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D218D #219D31
analogous
#6F219D #9D218D #9D214F
triadic
#9D218D #8D9D21 #218D9D
tetradic
#9D218D #9D6F21 #219D31 #214F9D
square
#9D218D #9D6F21 #219D31 #214F9D
split-complementary
#9D218D #4F9D21 #219D6F
monochromatic
#380C32 #6A1660 #9D218D #D02CBA #DD5CCC

Accessibility & contrast

On white

6.92
#9D218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D218D
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D218D#FFFFFF#000000##FFFFFF
##9D218D1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A52E56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d218d;
/* rgb */ color: rgb(157, 33, 141);
/* oklch */ color: oklch(49.3% 0.194 334.2);
Tailwind
colors: {
  custom: {
    50: '#be6caf',
    500: '#9d218d',
    950: '#000000',
  },
}
SCSS
$custom: #9d218d;
$custom-light: #be6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d218d",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 307.742,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49279,
    "c": 0.19442,
    "h": 334.2
  },
  "luminance": 0.10179
}

Semantic roles & 50–950 ramp

primary
#9D218D
secondary
#59C166
accent
#E85540
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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