#8218B4#8218B4

#8218B4 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.3% C 0.222 H 310.8°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8218B4
RGBrgb(130, 24, 180)
HSLhsl(281, 76%, 40%)
HSVhsv(281, 87%, 71%)
CMYKcmyk(27.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(35.39, 64.39, -59.16)
CIE-LCHlch(35.39, 87.44, 317.42°)
OKLaboklab(47.26% 0.1449 -0.168)
OKLCHoklch(47.26% 0.222 310.8)
XYZxyz(17.7692, 8.6948, 43.9134)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8218B4 #4AB418
analogous
#3418B4 #8218B4 #B41898
triadic
#8218B4 #B48218 #18B482
tetradic
#8218B4 #B43418 #4AB418 #1898B4
square
#8218B4 #B43418 #4AB418 #1898B4
split-complementary
#8218B4 #98B418 #18B434
monochromatic
#340A48 #5B117E #8218B4 #A627E2 #BC5DE9

Accessibility & contrast

On white

7.67
#8218B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8218B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8218B4
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8218B4#FFFFFF#000000##FFFFFF
##8218B41.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#7B446B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8218b4;
/* rgb */ color: rgb(130, 24, 180);
/* oklch */ color: oklch(47.3% 0.222 310.8);
Tailwind
colors: {
  custom: {
    50: '#ac67cb',
    500: '#8218b4',
    950: '#000000',
  },
}
SCSS
$custom: #8218b4;
$custom-light: #ac67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8218b4",
  "rgb": {
    "r": 130,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 280.769,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.47262,
    "c": 0.22188,
    "h": 310.8
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#8218B4
secondary
#7FCD5B
accent
#F33572
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8218B4

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

Preview Lab → · Contrast checker → · Palette generator →

#8218B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva