#8A218F#8A218F

#8A218F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.186 H 326.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8A218F
RGBrgb(138, 33, 143)
HSLhsl(297, 63%, 35%)
HSVhsv(297, 77%, 56%)
CMYKcmyk(3.5%, 76.9%, 0%, 43.9%)
CIE-LABlab(34.95, 56.35, -37.45)
CIE-LCHlch(34.95, 67.66, 326.39°)
OKLaboklab(46.39% 0.1547 -0.1042)
OKLCHoklch(46.39% 0.187 326)
XYZxyz(15.9827, 8.4753, 26.7753)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A218F #268F21
analogous
#53218F #8A218F #8F215D
triadic
#8A218F #8F8A21 #218F8A
tetradic
#8A218F #8F5321 #268F21 #215D8F
square
#8A218F #8F5321 #268F21 #215D8F
split-complementary
#8A218F #5D8F21 #218F53
monochromatic
#2A0A2C #5A165D #8A218F #BA2CC1 #D153D7

Accessibility & contrast

On white

7.79
#8A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A218F
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A218F#FFFFFF#000000##FFFFFF
##8A218F1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#3B578C
Tritanopia (blue-blind)
#8E3457
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a218f;
/* rgb */ color: rgb(138, 33, 143);
/* oklch */ color: oklch(46.4% 0.186 326.0);
Tailwind
colors: {
  custom: {
    50: '#b069b0',
    500: '#8a218f',
    950: '#000000',
  },
}
SCSS
$custom: #8a218f;
$custom-light: #b069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a218f",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 297.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46389,
    "c": 0.1865,
    "h": 326
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#8A218F
secondary
#56BB51
accent
#E6424A
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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