#8A218B#8A218B

#8A218B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.183 H 327.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8A218B
RGBrgb(138, 33, 139)
HSLhsl(299, 62%, 34%)
HSVhsv(299, 76%, 55%)
CMYKcmyk(0.7%, 76.3%, 0%, 45.5%)
CIE-LABlab(34.71, 55.66, -35.37)
CIE-LCHlch(34.71, 65.95, 327.57°)
OKLaboklab(46.14% 0.1548 -0.0981)
OKLCHoklch(46.14% 0.183 327.6)
XYZxyz(15.6851, 8.3562, 25.2079)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A218B #228B21
analogous
#55218B #8A218B #8B2157
triadic
#8A218B #8B8A21 #218B8A
tetradic
#8A218B #8B5521 #228B21 #21578B
square
#8A218B #8B5521 #228B21 #21578B
split-complementary
#8A218B #578B21 #218B55
monochromatic
#280A28 #59155A #8A218B #BB2DBC #D451D6

Accessibility & contrast

On white

7.86
#8A218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A218B
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A218B#FFFFFF#000000##FFFFFF
##8A218B1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#3E5688
Tritanopia (blue-blind)
#8E3255
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a218b;
/* rgb */ color: rgb(138, 33, 139);
/* oklch */ color: oklch(46.1% 0.183 327.6);
Tailwind
colors: {
  custom: {
    50: '#b069ad',
    500: '#8a218b',
    950: '#000000',
  },
}
SCSS
$custom: #8a218b;
$custom-light: #b069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a218b",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 299.434,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46141,
    "c": 0.1833,
    "h": 327.6
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#8A218B
secondary
#50B94F
accent
#E54345
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A218B

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

Preview Lab → · Contrast checker → · Palette generator →

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