#8A71C2#8A71C2

#8A71C2 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 60.6% C 0.122 H 296.8°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A71C2
RGBrgb(138, 113, 194)
HSLhsl(259, 40%, 60%)
HSVhsv(259, 42%, 76%)
CMYKcmyk(28.9%, 41.8%, 0%, 23.9%)
CIE-LABlab(53.07, 27.37, -38.96)
CIE-LCHlch(53.07, 47.62, 305.09°)
OKLaboklab(60.64% 0.0551 -0.109)
OKLCHoklch(60.64% 0.122 296.8)
XYZxyz(26.1216, 21.1083, 53.7266)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71C2 #A9C271
analogous
#7180C2 #8A71C2 #B371C2
triadic
#8A71C2 #C28A71 #71C28A
tetradic
#8A71C2 #C27180 #A9C271 #71C2B3
square
#8A71C2 #C27180 #A9C271 #71C2B3
split-complementary
#8A71C2 #C2B371 #80C271
monochromatic
#4E3781 #684AAC #8A71C2 #AD9CD4 #D1C7E7

Accessibility & contrast

On white

4.02
#8A71C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8A71C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71C2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71C2#FFFFFF#000000##000000
##8A71C21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7FC5
Deuteranopia (green-blind)
#5E7EC0
Tritanopia (blue-blind)
#7E7F90
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a71c2;
/* rgb */ color: rgb(138, 113, 194);
/* oklch */ color: oklch(60.6% 0.122 296.8);
Tailwind
colors: {
  custom: {
    50: '#ae9ad5',
    500: '#8a71c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a71c2;
$custom-light: #ae9ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71c2",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 258.519,
    "s": 39.901,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60636,
    "c": 0.12213,
    "h": 296.8
  },
  "luminance": 0.21109
}

Semantic roles & 50–950 ramp

primary
#8A71C2
secondary
#CDD7B8
accent
#B3338B
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A71C2

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

Preview Lab → · Contrast checker → · Palette generator →

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