#8A2DC1#8A2DC1

#8A2DC1 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.218 H 309.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A2DC1
RGBrgb(138, 45, 193)
HSLhsl(278, 62%, 47%)
HSVhsv(278, 77%, 76%)
CMYKcmyk(28.5%, 76.7%, 0%, 24.3%)
CIE-LABlab(39.80, 61.96, -59.60)
CIE-LCHlch(39.80, 85.98, 316.11°)
OKLaboklab(50.9% 0.1374 -0.1692)
OKLCHoklch(50.9% 0.218 309.1)
XYZxyz(21.0433, 11.1307, 51.4816)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DC1 #64C12D
analogous
#402DC1 #8A2DC1 #C12DAE
triadic
#8A2DC1 #C18A2D #2DC18A
tetradic
#8A2DC1 #C1402D #64C12D #2DAEC1
square
#8A2DC1 #C1402D #64C12D #2DAEC1
split-complementary
#8A2DC1 #AEC12D #2DC140
monochromatic
#43165E #67218F #8A2DC1 #A654D7 #C086E3

Accessibility & contrast

On white

6.51
#8A2DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A2DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DC1
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DC1#FFFFFF#000000##FFFFFF
##8A2DC11.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2dc1;
/* rgb */ color: rgb(138, 45, 193);
/* oklch */ color: oklch(50.9% 0.218 309.1);
Tailwind
colors: {
  custom: {
    50: '#b170d5',
    500: '#8a2dc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dc1;
$custom-light: #b170d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dc1",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 277.703,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50896,
    "c": 0.21794,
    "h": 309.1
  },
  "luminance": 0.1113
}

Semantic roles & 50–950 ramp

primary
#8A2DC1
secondary
#9BCC7E
accent
#E5437F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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