#8A71E2#8A71E2

#8A71E2 is a light, vivid violet. Relative luminance 0.227; OKLCH L 62.5% C 0.165 H 291.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A71E2
RGBrgb(138, 113, 226)
HSLhsl(253, 66%, 66%)
HSVhsv(253, 50%, 89%)
CMYKcmyk(38.9%, 50%, 0%, 11.4%)
CIE-LABlab(54.77, 35.82, -54.41)
CIE-LCHlch(54.77, 65.14, 303.36°)
OKLaboklab(62.46% 0.0593 -0.1541)
OKLCHoklch(62.46% 0.165 291)
XYZxyz(30.1101, 22.7037, 74.7326)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71E2 #C9E271
analogous
#7191E2 #8A71E2 #C371E2
triadic
#8A71E2 #E28A71 #71E28A
tetradic
#8A71E2 #E27191 #C9E271 #71E2C3
square
#8A71E2 #E27191 #C9E271 #71E2C3
split-complementary
#8A71E2 #E2C371 #91E271
monochromatic
#4425B4 #603ED8 #8A71E2 #B4A4EC #DED7F7

Accessibility & contrast

On white

3.79
#8A71E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#8A71E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71E2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71E2#FFFFFF#000000##000000
##8A71E21.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4385E6
Deuteranopia (green-blind)
#4681DF
Tritanopia (blue-blind)
#73889F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a71e2;
/* rgb */ color: rgb(138, 113, 226);
/* oklch */ color: oklch(62.5% 0.165 291.0);
Tailwind
colors: {
  custom: {
    50: '#b09aec',
    500: '#8a71e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a71e2;
$custom-light: #b09aec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71e2",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 253.274,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62464,
    "c": 0.16511,
    "h": 291
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#8A71E2
secondary
#E2EAC5
accent
#CE18A6
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A71E2

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

Preview Lab → · Contrast checker → · Palette generator →

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