#8A71F3#8A71F3

#8A71F3 is a light, vivid violet. Relative luminance 0.237; OKLCH L 63.5% C 0.187 H 288.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A71F3
RGBrgb(138, 113, 243)
HSLhsl(252, 84%, 70%)
HSVhsv(252, 53%, 95%)
CMYKcmyk(43.2%, 53.5%, 0%, 4.7%)
CIE-LABlab(55.77, 40.50, -62.30)
CIE-LCHlch(55.77, 74.30, 303.03°)
OKLaboklab(63.53% 0.0602 -0.1773)
OKLCHoklch(63.53% 0.187 288.8)
XYZxyz(32.5595, 23.6834, 87.6325)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71F3 #DAF371
analogous
#7199F3 #8A71F3 #CB71F3
triadic
#8A71F3 #F38A71 #71F38A
tetradic
#8A71F3 #F37199 #DAF371 #71F3CB
square
#8A71F3 #F37199 #DAF371 #71F3CB
split-complementary
#8A71F3 #F3CB71 #99F371
monochromatic
#3812D7 #5C39EE #8A71F3 #B8A9F8 #E7E2FD

Accessibility & contrast

On white

3.66
#8A71F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8A71F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71F3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71F3#FFFFFF#000000##000000
##8A71F31.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F88F7
Deuteranopia (green-blind)
#3182F0
Tritanopia (blue-blind)
#6B8DA7
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a71f3;
/* rgb */ color: rgb(138, 113, 243);
/* oklch */ color: oklch(63.5% 0.187 288.8);
Tailwind
colors: {
  custom: {
    50: '#b29af8',
    500: '#8a71f3',
    950: '#000000',
  },
}
SCSS
$custom: #8a71f3;
$custom-light: #b29af8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71f3",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 243
  },
  "hsl": {
    "h": 251.538,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63534,
    "c": 0.18723,
    "h": 288.8
  },
  "luminance": 0.23685
}

Semantic roles & 50–950 ramp

primary
#8A71F3
secondary
#EBF2CE
accent
#E105B7
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A71F3

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

Preview Lab → · Contrast checker → · Palette generator →

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