#8A218D#8A218D

#8A218D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.185 H 326.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8A218D
RGBrgb(138, 33, 141)
HSLhsl(298, 62%, 34%)
HSVhsv(298, 77%, 55%)
CMYKcmyk(2.1%, 76.6%, 0%, 44.7%)
CIE-LABlab(34.83, 56.00, -36.41)
CIE-LCHlch(34.83, 66.80, 326.97°)
OKLaboklab(46.26% 0.1548 -0.1011)
OKLCHoklch(46.26% 0.185 326.8)
XYZxyz(15.8325, 8.4152, 25.9845)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A218D #248D21
analogous
#54218D #8A218D #8D215A
triadic
#8A218D #8D8A21 #218D8A
tetradic
#8A218D #8D5421 #248D21 #215A8D
square
#8A218D #8D5421 #248D21 #215A8D
split-complementary
#8A218D #5A8D21 #218D54
monochromatic
#290A2A #59155B #8A218D #BB2DBF #D352D6

Accessibility & contrast

On white

7.83
#8A218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A218D
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A218D#FFFFFF#000000##FFFFFF
##8A218D1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#3C568A
Tritanopia (blue-blind)
#8E3356
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a218d;
/* rgb */ color: rgb(138, 33, 141);
/* oklch */ color: oklch(46.3% 0.185 326.8);
Tailwind
colors: {
  custom: {
    50: '#b069af',
    500: '#8a218d',
    950: '#000000',
  },
}
SCSS
$custom: #8a218d;
$custom-light: #b069af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a218d",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 298.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46264,
    "c": 0.18489,
    "h": 326.8
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#8A218D
secondary
#53BA50
accent
#E54347
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A218D

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

Preview Lab → · Contrast checker → · Palette generator →

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