#9D218C#9D218C

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

Color values

HEX#9D218C
RGBrgb(157, 33, 140)
HSLhsl(308, 65%, 37%)
HSVhsv(308, 79%, 62%)
CMYKcmyk(0%, 79%, 10.8%, 38.4%)
CIE-LABlab(38.11, 60.04, -30.39)
CIE-LCHlch(38.11, 67.30, 333.15°)
OKLaboklab(49.22% 0.1749 -0.0832)
OKLCHoklch(49.22% 0.194 334.6)
XYZxyz(19.1823, 10.1510, 25.7549)
Luminance0.1015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D218C #219D32
analogous
#70219D #9D218C #9D214E
triadic
#9D218C #8C9D21 #218C9D
tetradic
#9D218C #9D7021 #219D32 #214E9D
square
#9D218C #9D7021 #219D32 #214E9D
split-complementary
#9D218C #4E9D21 #219D70
monochromatic
#380C32 #6A165F #9D218C #D02CB9 #DD5CCB

Accessibility & contrast

On white

6.93
#9D218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9D218C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D218C
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D218C#FFFFFF#000000##FFFFFF
##9D218C1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4E8F
Deuteranopia (green-blind)
#4E6089
Tritanopia (blue-blind)
#A52D55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d218c;
/* rgb */ color: rgb(157, 33, 140);
/* oklch */ color: oklch(49.2% 0.194 334.6);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9d218c',
    950: '#000000',
  },
}
SCSS
$custom: #9d218c;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d218c",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 308.226,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49224,
    "c": 0.19372,
    "h": 334.6
  },
  "luminance": 0.10149
}

Semantic roles & 50–950 ramp

primary
#9D218C
secondary
#59C167
accent
#E85740
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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