#8A71EB#8A71EB

#8A71EB is a light, vivid violet. Relative luminance 0.232; OKLCH L 63.0% C 0.177 H 289.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A71EB
RGBrgb(138, 113, 235)
HSLhsl(252, 75%, 68%)
HSVhsv(252, 52%, 92%)
CMYKcmyk(41.3%, 51.9%, 0%, 7.8%)
CIE-LABlab(55.29, 38.29, -58.61)
CIE-LCHlch(55.29, 70.01, 303.15°)
OKLaboklab(63.02% 0.0599 -0.1664)
OKLCHoklch(63.02% 0.177 289.8)
XYZxyz(31.3776, 23.2107, 81.4080)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71EB #D2EB71
analogous
#7195EB #8A71EB #C771EB
triadic
#8A71EB #EB8A71 #71EB8A
tetradic
#8A71EB #EB7195 #D2EB71 #71EBC7
square
#8A71EB #EB7195 #D2EB71 #71EBC7
split-complementary
#8A71EB #EBC771 #95EB71
monochromatic
#3F1CC6 #5E3BE3 #8A71EB #B6A7F3 #E2DCFA

Accessibility & contrast

On white

3.72
#8A71EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#8A71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71EB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71EB#FFFFFF#000000##000000
##8A71EB1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A87EF
Deuteranopia (green-blind)
#3D82E8
Tritanopia (blue-blind)
#6F8BA3
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a71eb;
/* rgb */ color: rgb(138, 113, 235);
/* oklch */ color: oklch(63.0% 0.177 289.8);
Tailwind
colors: {
  custom: {
    50: '#b19af2',
    500: '#8a71eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a71eb;
$custom-light: #b19af2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71eb",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 252.295,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63023,
    "c": 0.17688,
    "h": 289.8
  },
  "luminance": 0.23212
}

Semantic roles & 50–950 ramp

primary
#8A71EB
secondary
#E7EEC9
accent
#D70EAE
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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