#8A71DB#8A71DB

#8A71DB is a light, vivid violet. Relative luminance 0.223; OKLCH L 62.0% C 0.156 H 292.1°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A71DB
RGBrgb(138, 113, 219)
HSLhsl(254, 60%, 65%)
HSVhsv(254, 48%, 86%)
CMYKcmyk(37%, 48.4%, 0%, 14.1%)
CIE-LABlab(54.37, 33.93, -51.10)
CIE-LCHlch(54.37, 61.34, 303.58°)
OKLaboklab(62.04% 0.0586 -0.1444)
OKLCHoklch(62.04% 0.156 292.1)
XYZxyz(29.1692, 22.3273, 69.7769)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71DB #C2DB71
analogous
#718DDB #8A71DB #BF71DB
triadic
#8A71DB #DB8A71 #71DB8A
tetradic
#8A71DB #DB718D #C2DB71 #71DBBF
square
#8A71DB #DB718D #C2DB71 #71DBBF
split-complementary
#8A71DB #DBBF71 #8DDB71
monochromatic
#482AA7 #6240CF #8A71DB #B2A2E7 #DAD3F4

Accessibility & contrast

On white

3.84
#8A71DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8A71DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71DB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71DB#FFFFFF#000000##000000
##8A71DB1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4984DF
Deuteranopia (green-blind)
#4D80D9
Tritanopia (blue-blind)
#76869C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a71db;
/* rgb */ color: rgb(138, 113, 219);
/* oklch */ color: oklch(62.0% 0.156 292.1);
Tailwind
colors: {
  custom: {
    50: '#b09ae7',
    500: '#8a71db',
    950: '#000000',
  },
}
SCSS
$custom: #8a71db;
$custom-light: #b09ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71db",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 254.151,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62043,
    "c": 0.15585,
    "h": 292.1
  },
  "luminance": 0.22328
}

Semantic roles & 50–950 ramp

primary
#8A71DB
secondary
#DDE6C2
accent
#C71E9F
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A71DB

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

Preview Lab → · Contrast checker → · Palette generator →

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