#8A2DC0#8A2DC0

#8A2DC0 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.8% C 0.217 H 309.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A2DC0
RGBrgb(138, 45, 192)
HSLhsl(278, 62%, 46%)
HSVhsv(278, 77%, 75%)
CMYKcmyk(28.1%, 76.6%, 0%, 24.7%)
CIE-LABlab(39.73, 61.75, -59.14)
CIE-LCHlch(39.73, 85.50, 316.24°)
OKLaboklab(50.82% 0.1376 -0.1678)
OKLCHoklch(50.82% 0.217 309.3)
XYZxyz(20.9321, 11.0862, 50.8961)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DC0 #63C02D
analogous
#412DC0 #8A2DC0 #C02DAD
triadic
#8A2DC0 #C08A2D #2DC08A
tetradic
#8A2DC0 #C0412D #63C02D #2DADC0
square
#8A2DC0 #C0412D #63C02D #2DADC0
split-complementary
#8A2DC0 #ADC02D #2DC041
monochromatic
#43165D #66218E #8A2DC0 #A753D7 #C085E2

Accessibility & contrast

On white

6.53
#8A2DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A2DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DC0
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DC0#FFFFFF#000000##FFFFFF
##8A2DC01.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#825176
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a2dc0;
/* rgb */ color: rgb(138, 45, 192);
/* oklch */ color: oklch(50.8% 0.217 309.3);
Tailwind
colors: {
  custom: {
    50: '#b170d4',
    500: '#8a2dc0',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dc0;
$custom-light: #b170d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dc0",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 277.959,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50821,
    "c": 0.217,
    "h": 309.3
  },
  "luminance": 0.11086
}

Semantic roles & 50–950 ramp

primary
#8A2DC0
secondary
#9ACC7D
accent
#E5437E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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