#8A4DEC#8A4DEC

#8A4DEC is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.7% C 0.226 H 296.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A4DEC
RGBrgb(138, 77, 236)
HSLhsl(263, 81%, 61%)
HSVhsv(263, 67%, 93%)
CMYKcmyk(41.5%, 67.4%, 0%, 7.5%)
CIE-LABlab(47.96, 58.05, -71.00)
CIE-LCHlch(47.96, 91.71, 309.27°)
OKLaboklab(57.69% 0.0996 -0.2029)
OKLCHoklch(57.69% 0.226 296.1)
XYZxyz(28.2714, 16.7666, 81.0874)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DEC #AFEC4D
analogous
#4D60EC #8A4DEC #DA4DEC
triadic
#8A4DEC #EC8A4D #4DEC8A
tetradic
#8A4DEC #EC4D60 #AFEC4D #4DECDA
square
#8A4DEC #EC4D60 #AFEC4D #4DECDA
split-complementary
#8A4DEC #ECDA4D #60EC4D
monochromatic
#4D12AC #6618E4 #8A4DEC #AE84F2 #D3BCF8

Accessibility & contrast

On white

4.82
#8A4DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A4DEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DEC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DEC#FFFFFF#000000##FFFFFF
##8A4DEC1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#707397
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a4dec;
/* rgb */ color: rgb(138, 77, 236);
/* oklch */ color: oklch(57.7% 0.226 296.1);
Tailwind
colors: {
  custom: {
    50: '#b383f3',
    500: '#8a4dec',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dec;
$custom-light: #b383f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dec",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 263.019,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.57691,
    "c": 0.22597,
    "h": 296.1
  },
  "luminance": 0.16767
}

Semantic roles & 50–950 ramp

primary
#8A4DEC
secondary
#D1E8AD
accent
#DD088B
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A4DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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