#9A218C#9A218C

#9A218C is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.192 H 333.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#9A218C
RGBrgb(154, 33, 140)
HSLhsl(307, 65%, 37%)
HSVhsv(307, 79%, 60%)
CMYKcmyk(0%, 78.6%, 9.1%, 39.6%)
CIE-LABlab(37.58, 59.37, -31.27)
CIE-LCHlch(37.58, 67.11, 332.22°)
OKLaboklab(48.74% 0.1719 -0.0858)
OKLCHoklch(48.74% 0.192 333.5)
XYZxyz(18.6041, 9.8528, 25.7278)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A218C #219A2F
analogous
#6C219A #9A218C #9A2150
triadic
#9A218C #8C9A21 #218C9A
tetradic
#9A218C #9A6C21 #219A2F #21509A
square
#9A218C #9A6C21 #219A2F #21509A
split-complementary
#9A218C #509A21 #219A6C
monochromatic
#350B30 #68165E #9A218C #CC2CBA #DC5ACD

Accessibility & contrast

On white

7.07
#9A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A218C
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A218C#FFFFFF#000000##FFFFFF
##9A218C1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a218c;
/* rgb */ color: rgb(154, 33, 140);
/* oklch */ color: oklch(48.7% 0.192 333.5);
Tailwind
colors: {
  custom: {
    50: '#bc6bae',
    500: '#9a218c',
    950: '#000000',
  },
}
SCSS
$custom: #9a218c;
$custom-light: #bc6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#9a218c",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 306.942,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4874,
    "c": 0.19213,
    "h": 333.5
  },
  "luminance": 0.09851
}

Semantic roles & 50–950 ramp

primary
#9A218C
secondary
#57C063
accent
#E85340
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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