#8A51CC#8A51CC

#8A51CC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.185 H 302.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A51CC
RGBrgb(138, 81, 204)
HSLhsl(268, 55%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32.4%, 60.3%, 0%, 20%)
CIE-LABlab(46.51, 47.99, -55.14)
CIE-LCHlch(46.51, 73.10, 311.03°)
OKLaboklab(55.94% 0.0981 -0.1563)
OKLCHoklch(55.94% 0.185 302.1)
XYZxyz(24.3202, 15.6477, 58.8541)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51CC #93CC51
analogous
#5155CC #8A51CC #C851CC
triadic
#8A51CC #CC8A51 #51CC8A
tetradic
#8A51CC #CC5155 #93CC51 #51CCC8
square
#8A51CC #CC5155 #93CC51 #51CCC8
split-complementary
#8A51CC #CCC851 #55CC51
monochromatic
#4E257E #6B33AD #8A51CC #AA80DA #CAB0E8

Accessibility & contrast

On white

5.09
#8A51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51CC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51CC#FFFFFF#000000##FFFFFF
##8A51CC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056DD0
Deuteranopia (green-blind)
#2D6EC9
Tritanopia (blue-blind)
#7D6B87
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a51cc;
/* rgb */ color: rgb(138, 81, 204);
/* oklch */ color: oklch(55.9% 0.185 302.1);
Tailwind
colors: {
  custom: {
    50: '#b084dc',
    500: '#8a51cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a51cc;
$custom-light: #b084dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51cc",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 267.805,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55942,
    "c": 0.18451,
    "h": 302.1
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#8A51CC
secondary
#BED6A3
accent
#DE4A99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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