#8A2EA8#8A2EA8

#8A2EA8 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.194 H 316.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA8
RGBrgb(138, 46, 168)
HSLhsl(285, 57%, 42%)
HSVhsv(285, 73%, 66%)
CMYKcmyk(17.9%, 72.6%, 0%, 34.1%)
CIE-LABlab(38.17, 56.39, -47.45)
CIE-LCHlch(38.17, 73.70, 319.93°)
OKLaboklab(49.19% 0.1404 -0.1335)
OKLCHoklch(49.19% 0.194 316.4)
XYZxyz(18.5250, 10.1852, 38.0283)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA8 #4CA82E
analogous
#4D2EA8 #8A2EA8 #A82E89
triadic
#8A2EA8 #A88A2E #2EA88A
tetradic
#8A2EA8 #A84D2E #4CA82E #2E89A8
square
#8A2EA8 #A84D2E #4CA82E #2E89A8
split-complementary
#8A2EA8 #89A82E #2EA84D
monochromatic
#3B1448 #632178 #8A2EA8 #AC47CD #C177DA

Accessibility & contrast

On white

6.92
#8A2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA8#FFFFFF#000000##FFFFFF
##8A2EA81.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#2E5CA5
Tritanopia (blue-blind)
#884768
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2ea8;
/* rgb */ color: rgb(138, 46, 168);
/* oklch */ color: oklch(49.2% 0.194 316.4);
Tailwind
colors: {
  custom: {
    50: '#b070c2',
    500: '#8a2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea8;
$custom-light: #b070c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea8",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 285.246,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.19369,
    "h": 316.4
  },
  "luminance": 0.10184
}

Semantic roles & 50–950 ramp

primary
#8A2EA8
secondary
#84C270
accent
#E0486D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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