#8A71EC#8A71EC

#8A71EC is a light, vivid violet. Relative luminance 0.233; OKLCH L 63.1% C 0.178 H 289.7°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A71EC
RGBrgb(138, 113, 236)
HSLhsl(252, 76%, 68%)
HSVhsv(252, 52%, 93%)
CMYKcmyk(41.5%, 52.1%, 0%, 7.5%)
CIE-LABlab(55.35, 38.56, -59.07)
CIE-LCHlch(55.35, 70.55, 303.14°)
OKLaboklab(63.09% 0.0599 -0.1678)
OKLCHoklch(63.09% 0.178 289.7)
XYZxyz(31.5225, 23.2686, 82.1710)
Luminance0.2327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71EC #D3EC71
analogous
#7195EC #8A71EC #C771EC
triadic
#8A71EC #EC8A71 #71EC8A
tetradic
#8A71EC #EC7195 #D3EC71 #71ECC7
square
#8A71EC #EC7195 #D3EC71 #71ECC7
split-complementary
#8A71EC #ECC771 #95EC71
monochromatic
#3E1BC8 #5E3BE5 #8A71EC #B6A7F3 #E3DDFA

Accessibility & contrast

On white

3.71
#8A71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#8A71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71EC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71EC#FFFFFF#000000##000000
##8A71EC1.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3987F0
Deuteranopia (green-blind)
#3B82E9
Tritanopia (blue-blind)
#6E8BA4
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a71ec;
/* rgb */ color: rgb(138, 113, 236);
/* oklch */ color: oklch(63.1% 0.178 289.7);
Tailwind
colors: {
  custom: {
    50: '#b19af3',
    500: '#8a71ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a71ec;
$custom-light: #b19af3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71ec",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 252.195,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63086,
    "c": 0.17818,
    "h": 289.7
  },
  "luminance": 0.2327
}

Semantic roles & 50–950 ramp

primary
#8A71EC
secondary
#E7EFCA
accent
#D90DAF
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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