#8A2EA7#8A2EA7

#8A2EA7 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.193 H 316.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA7
RGBrgb(138, 46, 167)
HSLhsl(286, 57%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(17.4%, 72.5%, 0%, 34.5%)
CIE-LABlab(38.11, 56.19, -46.95)
CIE-LCHlch(38.11, 73.23, 320.12°)
OKLaboklab(49.12% 0.1405 -0.132)
OKLCHoklch(49.12% 0.193 316.8)
XYZxyz(18.4322, 10.1480, 37.5396)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA7 #4BA72E
analogous
#4E2EA7 #8A2EA7 #A72E88
triadic
#8A2EA7 #A78A2E #2EA78A
tetradic
#8A2EA7 #A74E2E #4BA72E #2E88A7
square
#8A2EA7 #A74E2E #4BA72E #2E88A7
split-complementary
#8A2EA7 #88A72E #2EA74E
monochromatic
#3B1447 #622177 #8A2EA7 #AC46CC #C276D9

Accessibility & contrast

On white

6.93
#8A2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA7#FFFFFF#000000##FFFFFF
##8A2EA71.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2ea7;
/* rgb */ color: rgb(138, 46, 167);
/* oklch */ color: oklch(49.1% 0.193 316.8);
Tailwind
colors: {
  custom: {
    50: '#b070c2',
    500: '#8a2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea7;
$custom-light: #b070c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea7",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 285.62,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49121,
    "c": 0.19277,
    "h": 316.8
  },
  "luminance": 0.10147
}

Semantic roles & 50–950 ramp

primary
#8A2EA7
secondary
#83C170
accent
#E0486C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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