#8A2EA0#8A2EA0

#8A2EA0 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.186 H 319.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA0
RGBrgb(138, 46, 160)
HSLhsl(288, 55%, 40%)
HSVhsv(288, 71%, 63%)
CMYKcmyk(13.8%, 71.2%, 0%, 37.3%)
CIE-LABlab(37.66, 54.80, -43.47)
CIE-LCHlch(37.66, 69.95, 321.58°)
OKLaboklab(48.66% 0.141 -0.1218)
OKLCHoklch(48.66% 0.186 319.2)
XYZxyz(17.8026, 9.8962, 34.2233)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA0 #44A02E
analogous
#512EA0 #8A2EA0 #A02E7D
triadic
#8A2EA0 #A08A2E #2EA08A
tetradic
#8A2EA0 #A0512E #44A02E #2E7DA0
square
#8A2EA0 #A0512E #44A02E #2E7DA0
split-complementary
#8A2EA0 #7DA02E #2EA051
monochromatic
#381341 #612070 #8A2EA0 #AF42C9 #C372D6

Accessibility & contrast

On white

7.05
#8A2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2EA0
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA0#FFFFFF#000000##FFFFFF
##8A2EA01.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A3
Deuteranopia (green-blind)
#365C9D
Tritanopia (blue-blind)
#8A4464
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ea0;
/* rgb */ color: rgb(138, 46, 160);
/* oklch */ color: oklch(48.7% 0.186 319.2);
Tailwind
colors: {
  custom: {
    50: '#b06fbd',
    500: '#8a2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea0;
$custom-light: #b06fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea0",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 288.421,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48655,
    "c": 0.18638,
    "h": 319.2
  },
  "luminance": 0.09895
}

Semantic roles & 50–950 ramp

primary
#8A2EA0
secondary
#7CBE6C
accent
#DF4966
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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