#8A2CC1#8A2CC1

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

Color values

HEX#8A2CC1
RGBrgb(138, 44, 193)
HSLhsl(278, 63%, 46%)
HSVhsv(278, 77%, 76%)
CMYKcmyk(28.5%, 77.2%, 0%, 24.3%)
CIE-LABlab(39.67, 62.33, -59.81)
CIE-LCHlch(39.67, 86.38, 316.18°)
OKLaboklab(50.81% 0.1382 -0.1698)
OKLCHoklch(50.81% 0.219 309.1)
XYZxyz(21.0056, 11.0553, 51.4691)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CC1 #63C12C
analogous
#3F2CC1 #8A2CC1 #C12CAE
triadic
#8A2CC1 #C18A2C #2CC18A
tetradic
#8A2CC1 #C13F2C #63C12C #2CAEC1
square
#8A2CC1 #C13F2C #63C12C #2CAEC1
split-complementary
#8A2CC1 #AEC12C #2CC13F
monochromatic
#43155D #66218F #8A2CC1 #A753D8 #C084E3

Accessibility & contrast

On white

6.54
#8A2CC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A2CC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CC1
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CC1#FFFFFF#000000##FFFFFF
##8A2CC11.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2cc1;
/* rgb */ color: rgb(138, 44, 193);
/* oklch */ color: oklch(50.8% 0.219 309.1);
Tailwind
colors: {
  custom: {
    50: '#b170d5',
    500: '#8a2cc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cc1;
$custom-light: #b170d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cc1",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 277.852,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50807,
    "c": 0.21893,
    "h": 309.1
  },
  "luminance": 0.11055
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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