#8A2DCA#8A2DCA

#8A2DCA is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.6% C 0.226 H 306.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A2DCA
RGBrgb(138, 45, 202)
HSLhsl(276, 64%, 48%)
HSVhsv(276, 78%, 79%)
CMYKcmyk(31.7%, 77.7%, 0%, 20.8%)
CIE-LABlab(40.48, 63.90, -63.74)
CIE-LCHlch(40.48, 90.25, 315.07°)
OKLaboklab(51.59% 0.1354 -0.1813)
OKLCHoklch(51.59% 0.226 306.7)
XYZxyz(22.0780, 11.5446, 56.9309)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DCA #6DCA2D
analogous
#3B2DCA #8A2DCA #CA2DBB
triadic
#8A2DCA #CA8A2D #2DCA8A
tetradic
#8A2DCA #CA3B2D #6DCA2D #2DBBCA
square
#8A2DCA #CA3B2D #6DCA2D #2DBBCA
split-complementary
#8A2DCA #BBCA2D #2DCA3B
monochromatic
#461766 #682298 #8A2DCA #A65ADA #C18CE5

Accessibility & contrast

On white

6.35
#8A2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A2DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DCA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DCA#FFFFFF#000000##FFFFFF
##8A2DCA1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#7F557B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2dca;
/* rgb */ color: rgb(138, 45, 202);
/* oklch */ color: oklch(51.6% 0.226 306.7);
Tailwind
colors: {
  custom: {
    50: '#b271db',
    500: '#8a2dca',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dca;
$custom-light: #b271db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dca",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 275.541,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51589,
    "c": 0.2263,
    "h": 306.7
  },
  "luminance": 0.11544
}

Semantic roles & 50–950 ramp

primary
#8A2DCA
secondary
#A2CF83
accent
#E74185
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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