#8A2EC4#8A2EC4

#8A2EC4 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.220 H 308.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A2EC4
RGBrgb(138, 46, 196)
HSLhsl(277, 62%, 47%)
HSVhsv(277, 77%, 77%)
CMYKcmyk(29.6%, 76.5%, 0%, 23.1%)
CIE-LABlab(40.15, 62.24, -60.78)
CIE-LCHlch(40.15, 86.99, 315.68°)
OKLaboklab(51.22% 0.1359 -0.1727)
OKLCHoklch(51.22% 0.22 308.2)
XYZxyz(21.4200, 11.3431, 53.2749)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EC4 #68C42E
analogous
#3F2EC4 #8A2EC4 #C42EB3
triadic
#8A2EC4 #C48A2E #2EC48A
tetradic
#8A2EC4 #C43F2E #68C42E #2EB3C4
square
#8A2EC4 #C43F2E #68C42E #2EB3C4
split-complementary
#8A2EC4 #B3C42E #2EC43F
monochromatic
#441761 #672292 #8A2EC4 #A658D8 #C089E3

Accessibility & contrast

On white

6.42
#8A2EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A2EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EC4
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EC4#FFFFFF#000000##FFFFFF
##8A2EC41.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#815378
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2ec4;
/* rgb */ color: rgb(138, 46, 196);
/* oklch */ color: oklch(51.2% 0.220 308.2);
Tailwind
colors: {
  custom: {
    50: '#b271d7',
    500: '#8a2ec4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ec4;
$custom-light: #b271d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ec4",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 276.8,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51215,
    "c": 0.21972,
    "h": 308.2
  },
  "luminance": 0.11343
}

Semantic roles & 50–950 ramp

primary
#8A2EC4
secondary
#9ECD81
accent
#E54382
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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