#9A218B#9A218B

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

Color values

HEX#9A218B
RGBrgb(154, 33, 139)
HSLhsl(307, 65%, 37%)
HSVhsv(307, 79%, 60%)
CMYKcmyk(0%, 78.6%, 9.7%, 39.6%)
CIE-LABlab(37.52, 59.22, -30.74)
CIE-LCHlch(37.52, 66.72, 332.57°)
OKLaboklab(48.68% 0.1719 -0.0843)
OKLCHoklch(48.68% 0.191 333.9)
XYZxyz(18.5307, 9.8235, 25.3413)
Luminance0.0982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A218B #219A30
analogous
#6D219A #9A218B #9A214F
triadic
#9A218B #8B9A21 #218B9A
tetradic
#9A218B #9A6D21 #219A30 #214F9A
square
#9A218B #9A6D21 #219A30 #214F9A
split-complementary
#9A218B #4F9A21 #219A6D
monochromatic
#350B30 #68165E #9A218B #CC2CB8 #DC5ACC

Accessibility & contrast

On white

7.08
#9A218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A218B
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A218B#FFFFFF#000000##FFFFFF
##9A218B1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8E
Deuteranopia (green-blind)
#4C5E88
Tritanopia (blue-blind)
#A12E55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a218b;
/* rgb */ color: rgb(154, 33, 139);
/* oklch */ color: oklch(48.7% 0.191 333.9);
Tailwind
colors: {
  custom: {
    50: '#bc6bad',
    500: '#9a218b',
    950: '#000000',
  },
}
SCSS
$custom: #9a218b;
$custom-light: #bc6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#9a218b",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 307.438,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48684,
    "c": 0.19142,
    "h": 333.9
  },
  "luminance": 0.09822
}

Semantic roles & 50–950 ramp

primary
#9A218B
secondary
#57C064
accent
#E85540
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A218B

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

Preview Lab → · Contrast checker → · Palette generator →

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