#8A51CE#8A51CE

#8A51CE is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.1% C 0.187 H 301.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A51CE
RGBrgb(138, 81, 206)
HSLhsl(267, 56%, 56%)
HSVhsv(267, 61%, 81%)
CMYKcmyk(33%, 60.7%, 0%, 19.2%)
CIE-LABlab(46.64, 48.49, -56.09)
CIE-LCHlch(46.64, 74.14, 310.84°)
OKLaboklab(56.08% 0.098 -0.159)
OKLCHoklch(56.08% 0.187 301.7)
XYZxyz(24.5616, 15.7443, 60.1255)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51CE #95CE51
analogous
#5157CE #8A51CE #C951CE
triadic
#8A51CE #CE8A51 #51CE8A
tetradic
#8A51CE #CE5157 #95CE51 #51CEC9
square
#8A51CE #CE5157 #95CE51 #51CEC9
split-complementary
#8A51CE #CEC951 #57CE51
monochromatic
#4E2480 #6B32B0 #8A51CE #AA81DB #CAB1E9

Accessibility & contrast

On white

5.06
#8A51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51CE
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51CE#FFFFFF#000000##FFFFFF
##8A51CE1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED2
Deuteranopia (green-blind)
#2A6ECB
Tritanopia (blue-blind)
#7C6B88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a51ce;
/* rgb */ color: rgb(138, 81, 206);
/* oklch */ color: oklch(56.1% 0.187 301.7);
Tailwind
colors: {
  custom: {
    50: '#b084de',
    500: '#8a51ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a51ce;
$custom-light: #b084de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51ce",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 267.36,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56076,
    "c": 0.18682,
    "h": 301.7
  },
  "luminance": 0.15744
}

Semantic roles & 50–950 ramp

primary
#8A51CE
secondary
#C0D7A4
accent
#DF489B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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