#8A2CA6#8A2CA6

#8A2CA6 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.194 H 317.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A2CA6
RGBrgb(138, 44, 166)
HSLhsl(286, 58%, 41%)
HSVhsv(286, 73%, 65%)
CMYKcmyk(16.9%, 73.5%, 0%, 34.9%)
CIE-LABlab(37.77, 56.77, -46.90)
CIE-LCHlch(37.77, 73.64, 320.44°)
OKLaboklab(48.86% 0.1426 -0.1319)
OKLCHoklch(48.86% 0.194 317.2)
XYZxyz(18.2638, 9.9586, 37.0291)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CA6 #48A62C
analogous
#4D2CA6 #8A2CA6 #A62C85
triadic
#8A2CA6 #A68A2C #2CA68A
tetradic
#8A2CA6 #A64D2C #48A62C #2C85A6
square
#8A2CA6 #A64D2C #48A62C #2C85A6
split-complementary
#8A2CA6 #85A62C #2CA64D
monochromatic
#3A1245 #621F76 #8A2CA6 #AD42CD #C273DA

Accessibility & contrast

On white

7.02
#8A2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2CA6
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CA6#FFFFFF#000000##FFFFFF
##8A2CA61.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#2F5CA3
Tritanopia (blue-blind)
#894567
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ca6;
/* rgb */ color: rgb(138, 44, 166);
/* oklch */ color: oklch(48.9% 0.194 317.2);
Tailwind
colors: {
  custom: {
    50: '#b06fc1',
    500: '#8a2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ca6;
$custom-light: #b06fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ca6",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 286.23,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48859,
    "c": 0.1942,
    "h": 317.2
  },
  "luminance": 0.09958
}

Semantic roles & 50–950 ramp

primary
#8A2CA6
secondary
#80C16D
accent
#E1466A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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