#9A218E#9A218E

#9A218E is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.194 H 332.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9A218E
RGBrgb(154, 33, 142)
HSLhsl(306, 65%, 37%)
HSVhsv(306, 79%, 60%)
CMYKcmyk(0%, 78.6%, 7.8%, 39.6%)
CIE-LABlab(37.68, 59.68, -32.33)
CIE-LCHlch(37.68, 67.88, 331.56°)
OKLaboklab(48.85% 0.172 -0.0889)
OKLCHoklch(48.85% 0.194 332.7)
XYZxyz(18.7529, 9.9123, 26.5116)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A218E #219A2D
analogous
#6A219A #9A218E #9A2152
triadic
#9A218E #8E9A21 #218E9A
tetradic
#9A218E #9A6A21 #219A2D #21529A
square
#9A218E #9A6A21 #219A2D #21529A
split-complementary
#9A218E #529A21 #219A6A
monochromatic
#350B31 #681660 #9A218E #CC2CBC #DC5ACF

Accessibility & contrast

On white

7.04
#9A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A218E
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A218E#FFFFFF#000000##FFFFFF
##9A218E1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194E91
Deuteranopia (green-blind)
#4B5F8B
Tritanopia (blue-blind)
#A12F57
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a218e;
/* rgb */ color: rgb(154, 33, 142);
/* oklch */ color: oklch(48.9% 0.194 332.7);
Tailwind
colors: {
  custom: {
    50: '#bc6baf',
    500: '#9a218e',
    950: '#000000',
  },
}
SCSS
$custom: #9a218e;
$custom-light: #bc6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a218e",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 305.95,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48852,
    "c": 0.19358,
    "h": 332.7
  },
  "luminance": 0.09911
}

Semantic roles & 50–950 ramp

primary
#9A218E
secondary
#57C061
accent
#E85140
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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