#9A218A#9A218A

#9A218A is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.191 H 334.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#9A218A
RGBrgb(154, 33, 138)
HSLhsl(308, 65%, 37%)
HSVhsv(308, 79%, 60%)
CMYKcmyk(0%, 78.6%, 10.4%, 39.6%)
CIE-LABlab(37.47, 59.07, -30.21)
CIE-LCHlch(37.47, 66.34, 332.91°)
OKLaboklab(48.63% 0.1718 -0.0828)
OKLCHoklch(48.63% 0.191 334.3)
XYZxyz(18.4579, 9.7944, 24.9582)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A218A #219A31
analogous
#6E219A #9A218A #9A214E
triadic
#9A218A #8A9A21 #218A9A
tetradic
#9A218A #9A6E21 #219A31 #214E9A
square
#9A218A #9A6E21 #219A31 #214E9A
split-complementary
#9A218A #4E9A21 #219A6E
monochromatic
#350B30 #68165D #9A218A #CC2CB7 #DC5ACA

Accessibility & contrast

On white

7.10
#9A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9A218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A218A
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A218A#FFFFFF#000000##FFFFFF
##9A218A1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#4D5E87
Tritanopia (blue-blind)
#A22D54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a218a;
/* rgb */ color: rgb(154, 33, 138);
/* oklch */ color: oklch(48.6% 0.191 334.3);
Tailwind
colors: {
  custom: {
    50: '#bc6bac',
    500: '#9a218a',
    950: '#000000',
  },
}
SCSS
$custom: #9a218a;
$custom-light: #bc6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a218a",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 307.934,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48629,
    "c": 0.1907,
    "h": 334.3
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#9A218A
secondary
#57C065
accent
#E85640
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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