#8A218A#8A218A

#8A218A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.182 H 328.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8A218A
RGBrgb(138, 33, 138)
HSLhsl(300, 61%, 34%)
HSVhsv(300, 76%, 54%)
CMYKcmyk(0%, 76.1%, 0%, 45.9%)
CIE-LABlab(34.66, 55.49, -34.85)
CIE-LCHlch(34.66, 65.52, 327.87°)
OKLaboklab(46.08% 0.1548 -0.0966)
OKLCHoklch(46.08% 0.183 328)
XYZxyz(15.6123, 8.3271, 24.8248)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A218A #218A21
analogous
#55218A #8A218A #8A2155
triadic
#8A218A #8A8A21 #218A8A
tetradic
#8A218A #8A5521 #218A21 #21558A
square
#8A218A #8A5521 #218A21 #21558A
split-complementary
#8A218A #558A21 #218A55
monochromatic
#270927 #591559 #8A218A #BB2DBB #D550D5

Accessibility & contrast

On white

7.88
#8A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A218A
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A218A#FFFFFF#000000##FFFFFF
##8A218A1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#8E3254
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a218a;
/* rgb */ color: rgb(138, 33, 138);
/* oklch */ color: oklch(46.1% 0.182 328.0);
Tailwind
colors: {
  custom: {
    50: '#b069ac',
    500: '#8a218a',
    950: '#000000',
  },
}
SCSS
$custom: #8a218a;
$custom-light: #b069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a218a",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4608,
    "c": 0.1825,
    "h": 328
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#8A218A
secondary
#4EB94E
accent
#E54343
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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