#8A71E8#8A71E8

#8A71E8 is a light, vivid violet. Relative luminance 0.230; OKLCH L 62.8% C 0.173 H 290.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A71E8
RGBrgb(138, 113, 232)
HSLhsl(253, 72%, 68%)
HSVhsv(253, 51%, 91%)
CMYKcmyk(40.5%, 51.3%, 0%, 9%)
CIE-LABlab(55.11, 37.46, -57.22)
CIE-LCHlch(55.11, 68.39, 303.21°)
OKLaboklab(62.83% 0.0597 -0.1623)
OKLCHoklch(62.83% 0.173 290.2)
XYZxyz(30.9478, 23.0388, 79.1446)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71E8 #CFE871
analogous
#7193E8 #8A71E8 #C571E8
triadic
#8A71E8 #E88A71 #71E88A
tetradic
#8A71E8 #E87193 #CFE871 #71E8C5
square
#8A71E8 #E87193 #CFE871 #71E8C5
split-complementary
#8A71E8 #E8C571 #93E871
monochromatic
#411FC0 #5F3CDF #8A71E8 #B5A6F1 #E1DAF9

Accessibility & contrast

On white

3.74
#8A71E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8A71E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71E8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71E8#FFFFFF#000000##000000
##8A71E81.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D86EC
Deuteranopia (green-blind)
#4081E5
Tritanopia (blue-blind)
#708AA2
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a71e8;
/* rgb */ color: rgb(138, 113, 232);
/* oklch */ color: oklch(62.8% 0.173 290.2);
Tailwind
colors: {
  custom: {
    50: '#b19af0',
    500: '#8a71e8',
    950: '#000000',
  },
}
SCSS
$custom: #8a71e8;
$custom-light: #b19af0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71e8",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 252.605,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.62834,
    "c": 0.17298,
    "h": 290.2
  },
  "luminance": 0.2304
}

Semantic roles & 50–950 ramp

primary
#8A71E8
secondary
#E5EDC8
accent
#D411AB
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A71E8

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

Preview Lab → · Contrast checker → · Palette generator →

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