#8A71C8#8A71C8

#8A71C8 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.0% C 0.130 H 295.5°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A71C8
RGBrgb(138, 113, 200)
HSLhsl(257, 44%, 61%)
HSVhsv(257, 44%, 78%)
CMYKcmyk(31%, 43.5%, 0%, 21.6%)
CIE-LABlab(53.37, 28.91, -41.92)
CIE-LCHlch(53.37, 50.92, 304.60°)
OKLaboklab(60.96% 0.0561 -0.1176)
OKLCHoklch(60.96% 0.13 295.5)
XYZxyz(26.8091, 21.3833, 57.3473)
Luminance0.2138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71C8 #AFC871
analogous
#7184C8 #8A71C8 #B671C8
triadic
#8A71C8 #C88A71 #71C88A
tetradic
#8A71C8 #C87184 #AFC871 #71C8B6
square
#8A71C8 #C87184 #AFC871 #71C8B6
split-complementary
#8A71C8 #C8B671 #84C871
monochromatic
#4D3589 #6646B6 #8A71C8 #AE9DD9 #D3C9EA

Accessibility & contrast

On white

3.98
#8A71C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8A71C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71C8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71C8#FFFFFF#000000##000000
##8A71C81.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5780CB
Deuteranopia (green-blind)
#5B7EC6
Tritanopia (blue-blind)
#7C8193
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a71c8;
/* rgb */ color: rgb(138, 113, 200);
/* oklch */ color: oklch(61.0% 0.130 295.5);
Tailwind
colors: {
  custom: {
    50: '#ae9ad9',
    500: '#8a71c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a71c8;
$custom-light: #ae9ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71c8",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 257.241,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60959,
    "c": 0.1303,
    "h": 295.5
  },
  "luminance": 0.21384
}

Semantic roles & 50–950 ramp

primary
#8A71C8
secondary
#D1DBBA
accent
#B72E90
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A71C8

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

Preview Lab → · Contrast checker → · Palette generator →

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