#9A218D#9A218D

#9A218D is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.193 H 333.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#9A218D
RGBrgb(154, 33, 141)
HSLhsl(306, 65%, 37%)
HSVhsv(306, 79%, 60%)
CMYKcmyk(0%, 78.6%, 8.4%, 39.6%)
CIE-LABlab(37.63, 59.53, -31.80)
CIE-LCHlch(37.63, 67.49, 331.89°)
OKLaboklab(48.8% 0.1719 -0.0874)
OKLCHoklch(48.8% 0.193 333.1)
XYZxyz(18.6781, 9.8824, 26.1179)
Luminance0.0988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A218D #219A2E
analogous
#6B219A #9A218D #9A2151
triadic
#9A218D #8D9A21 #218D9A
tetradic
#9A218D #9A6B21 #219A2E #21519A
square
#9A218D #9A6B21 #219A2E #21519A
split-complementary
#9A218D #519A21 #219A6B
monochromatic
#350B31 #68165F #9A218D #CC2CBB #DC5ACE

Accessibility & contrast

On white

7.06
#9A218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9A218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A218D
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A218D#FFFFFF#000000##FFFFFF
##9A218D1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#4B5F8A
Tritanopia (blue-blind)
#A12F56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a218d;
/* rgb */ color: rgb(154, 33, 141);
/* oklch */ color: oklch(48.8% 0.193 333.1);
Tailwind
colors: {
  custom: {
    50: '#bc6baf',
    500: '#9a218d',
    950: '#000000',
  },
}
SCSS
$custom: #9a218d;
$custom-light: #bc6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a218d",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 306.446,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48796,
    "c": 0.19286,
    "h": 333.1
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#9A218D
secondary
#57C062
accent
#E85240
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A218D

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

Preview Lab → · Contrast checker → · Palette generator →

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