#8A71F2#8A71F2

#8A71F2 is a light, vivid violet. Relative luminance 0.236; OKLCH L 63.5% C 0.186 H 288.9°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8A71F2
RGBrgb(138, 113, 242)
HSLhsl(252, 83%, 70%)
HSVhsv(252, 53%, 95%)
CMYKcmyk(43%, 53.3%, 0%, 5.1%)
CIE-LABlab(55.71, 40.22, -61.84)
CIE-LCHlch(55.71, 73.77, 303.04°)
OKLaboklab(63.47% 0.0602 -0.1759)
OKLCHoklch(63.47% 0.186 288.9)
XYZxyz(32.4089, 23.6232, 86.8393)
Luminance0.2362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71F2 #D9F271
analogous
#7199F2 #8A71F2 #CB71F2
triadic
#8A71F2 #F28A71 #71F28A
tetradic
#8A71F2 #F27199 #D9F271 #71F2CB
square
#8A71F2 #F27199 #D9F271 #71F2CB
split-complementary
#8A71F2 #F2CB71 #99F271
monochromatic
#3914D5 #5C39ED #8A71F2 #B8A9F7 #E6E1FC

Accessibility & contrast

On white

3.67
#8A71F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#8A71F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71F2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71F2#FFFFFF#000000##000000
##8A71F21.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3188F6
Deuteranopia (green-blind)
#3382EF
Tritanopia (blue-blind)
#6B8DA7
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a71f2;
/* rgb */ color: rgb(138, 113, 242);
/* oklch */ color: oklch(63.5% 0.186 288.9);
Tailwind
colors: {
  custom: {
    50: '#b29af7',
    500: '#8a71f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a71f2;
$custom-light: #b29af7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71f2",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 251.628,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.6347,
    "c": 0.18594,
    "h": 288.9
  },
  "luminance": 0.23624
}

Semantic roles & 50–950 ramp

primary
#8A71F2
secondary
#EBF2CD
accent
#E006B5
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A71F2

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

Preview Lab → · Contrast checker → · Palette generator →

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