#9A218F#9A218F

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

Color values

HEX#9A218F
RGBrgb(154, 33, 143)
HSLhsl(305, 65%, 37%)
HSVhsv(305, 79%, 60%)
CMYKcmyk(0%, 78.6%, 7.1%, 39.6%)
CIE-LABlab(37.74, 59.84, -32.86)
CIE-LCHlch(37.74, 68.26, 331.23°)
OKLaboklab(48.91% 0.172 -0.0904)
OKLCHoklch(48.91% 0.194 332.3)
XYZxyz(18.8283, 9.9425, 26.9087)
Luminance0.0994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A218F #219A2C
analogous
#69219A #9A218F #9A2152
triadic
#9A218F #8F9A21 #218F9A
tetradic
#9A218F #9A6921 #219A2C #21529A
square
#9A218F #9A6921 #219A2C #21529A
split-complementary
#9A218F #529A21 #219A69
monochromatic
#350B31 #681660 #9A218F #CC2CBE #DC5AD0

Accessibility & contrast

On white

7.03
#9A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9A218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A218F
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A218F#FFFFFF#000000##FFFFFF
##9A218F1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184E92
Deuteranopia (green-blind)
#4A5F8C
Tritanopia (blue-blind)
#A13057
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a218f;
/* rgb */ color: rgb(154, 33, 143);
/* oklch */ color: oklch(48.9% 0.194 332.3);
Tailwind
colors: {
  custom: {
    50: '#bc6bb0',
    500: '#9a218f',
    950: '#000000',
  },
}
SCSS
$custom: #9a218f;
$custom-light: #bc6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a218f",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 305.455,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48908,
    "c": 0.19431,
    "h": 332.3
  },
  "luminance": 0.09941
}

Semantic roles & 50–950 ramp

primary
#9A218F
secondary
#57C061
accent
#E84F40
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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