#8A2CA8#8A2CA8

#8A2CA8 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.196 H 316.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8A2CA8
RGBrgb(138, 44, 168)
HSLhsl(285, 58%, 42%)
HSVhsv(285, 74%, 66%)
CMYKcmyk(17.9%, 73.8%, 0%, 34.1%)
CIE-LABlab(37.90, 57.17, -47.88)
CIE-LCHlch(37.90, 74.57, 320.05°)
OKLaboklab(49% 0.1423 -0.1348)
OKLCHoklch(49% 0.196 316.6)
XYZxyz(18.4487, 10.0325, 38.0029)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CA8 #4AA82C
analogous
#4C2CA8 #8A2CA8 #A82C88
triadic
#8A2CA8 #A88A2C #2CA88A
tetradic
#8A2CA8 #A84C2C #4AA82C #2C88A8
square
#8A2CA8 #A84C2C #4AA82C #2C88A8
split-complementary
#8A2CA8 #88A82C #2CA84C
monochromatic
#3A1347 #621F78 #8A2CA8 #AC43CE #C274DB

Accessibility & contrast

On white

6.99
#8A2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A2CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CA8
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CA8#FFFFFF#000000##FFFFFF
##8A2CA81.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#2D5CA5
Tritanopia (blue-blind)
#884668
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ca8;
/* rgb */ color: rgb(138, 44, 168);
/* oklch */ color: oklch(49.0% 0.196 316.6);
Tailwind
colors: {
  custom: {
    50: '#b06fc2',
    500: '#8a2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ca8;
$custom-light: #b06fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ca8",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 285.484,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48996,
    "c": 0.19601,
    "h": 316.6
  },
  "luminance": 0.10032
}

Semantic roles & 50–950 ramp

primary
#8A2CA8
secondary
#82C26E
accent
#E2466C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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