#8A218C#8A218C

#8A218C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.184 H 327.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8A218C
RGBrgb(138, 33, 140)
HSLhsl(299, 62%, 34%)
HSVhsv(299, 76%, 55%)
CMYKcmyk(1.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(34.77, 55.83, -35.89)
CIE-LCHlch(34.77, 66.37, 327.26°)
OKLaboklab(46.2% 0.1548 -0.0996)
OKLCHoklch(46.2% 0.184 327.2)
XYZxyz(15.7585, 8.3856, 25.5944)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A218C #238C21
analogous
#55218C #8A218C #8C2159
triadic
#8A218C #8C8A21 #218C8A
tetradic
#8A218C #8C5521 #238C21 #21598C
square
#8A218C #8C5521 #238C21 #21598C
split-complementary
#8A218C #598C21 #218C55
monochromatic
#280A29 #59155A #8A218C #BB2DBE #D451D6

Accessibility & contrast

On white

7.85
#8A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A218C
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A218C#FFFFFF#000000##FFFFFF
##8A218C1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498F
Deuteranopia (green-blind)
#3D5689
Tritanopia (blue-blind)
#8E3355
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a218c;
/* rgb */ color: rgb(138, 33, 140);
/* oklch */ color: oklch(46.2% 0.184 327.2);
Tailwind
colors: {
  custom: {
    50: '#b069ae',
    500: '#8a218c',
    950: '#000000',
  },
}
SCSS
$custom: #8a218c;
$custom-light: #b069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a218c",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 298.879,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46202,
    "c": 0.1841,
    "h": 327.2
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

primary
#8A218C
secondary
#51B94F
accent
#E54346
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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