#8A2CCE#8A2CCE

#8A2CCE is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.8% C 0.231 H 305.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A2CCE
RGBrgb(138, 44, 206)
HSLhsl(275, 65%, 49%)
HSVhsv(275, 79%, 81%)
CMYKcmyk(33%, 78.6%, 0%, 19.2%)
CIE-LABlab(40.67, 65.12, -65.75)
CIE-LCHlch(40.67, 92.54, 314.72°)
OKLaboklab(51.82% 0.1352 -0.1872)
OKLCHoklch(51.82% 0.231 305.8)
XYZxyz(22.5200, 11.6611, 59.4450)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CCE #70CE2C
analogous
#392CCE #8A2CCE #CE2CC1
triadic
#8A2CCE #CE8A2C #2CCE8A
tetradic
#8A2CCE #CE392C #70CE2C #2CC1CE
square
#8A2CCE #CE392C #70CE2C #2CC1CE
split-complementary
#8A2CCE #C1CE2C #2CCE39
monochromatic
#461669 #68219C #8A2CCE #A65BDC #C18EE7

Accessibility & contrast

On white

6.30
#8A2CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A2CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CCE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CCE#FFFFFF#000000##FFFFFF
##8A2CCE1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#7D577D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a2cce;
/* rgb */ color: rgb(138, 44, 206);
/* oklch */ color: oklch(51.8% 0.231 305.8);
Tailwind
colors: {
  custom: {
    50: '#b270de',
    500: '#8a2cce',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cce;
$custom-light: #b270de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cce",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 206
  },
  "hsl": {
    "h": 274.815,
    "s": 64.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51819,
    "c": 0.23095,
    "h": 305.8
  },
  "luminance": 0.11661
}

Semantic roles & 50–950 ramp

primary
#8A2CCE
secondary
#A5D185
accent
#E84086
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A2CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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