#8A51C2#8A51C2

#8A51C2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.173 H 304.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A51C2
RGBrgb(138, 81, 194)
HSLhsl(270, 48%, 54%)
HSVhsv(270, 58%, 76%)
CMYKcmyk(28.9%, 58.2%, 0%, 23.9%)
CIE-LABlab(45.88, 45.55, -50.37)
CIE-LCHlch(45.88, 67.91, 312.12°)
OKLaboklab(55.29% 0.0983 -0.1422)
OKLCHoklch(55.29% 0.173 304.6)
XYZxyz(23.1591, 15.1833, 52.7391)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51C2 #89C251
analogous
#5251C2 #8A51C2 #C251C2
triadic
#8A51C2 #C28A51 #51C28A
tetradic
#8A51C2 #C25251 #89C251 #51C2C2
square
#8A51C2 #C25251 #89C251 #51C2C2
split-complementary
#8A51C2 #C2C251 #51C252
monochromatic
#4D2871 #6B379E #8A51C2 #A87ED2 #C7ACE2

Accessibility & contrast

On white

5.20
#8A51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8A51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51C2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51C2#FFFFFF#000000##FFFFFF
##8A51C21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#396DBF
Tritanopia (blue-blind)
#806782
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a51c2;
/* rgb */ color: rgb(138, 81, 194);
/* oklch */ color: oklch(55.3% 0.173 304.6);
Tailwind
colors: {
  custom: {
    50: '#b084d5',
    500: '#8a51c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a51c2;
$custom-light: #b084d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51c2",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 270.265,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55286,
    "c": 0.17288,
    "h": 304.6
  },
  "luminance": 0.15183
}

Semantic roles & 50–950 ramp

primary
#8A51C2
secondary
#B7D09F
accent
#D85093
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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