#8A51CD#8A51CD

#8A51CD is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.0% C 0.186 H 301.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A51CD
RGBrgb(138, 81, 205)
HSLhsl(268, 55%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32.7%, 60.5%, 0%, 19.6%)
CIE-LABlab(46.57, 48.24, -55.62)
CIE-LCHlch(46.57, 73.62, 310.94°)
OKLaboklab(56.01% 0.0981 -0.1577)
OKLCHoklch(56.01% 0.186 301.9)
XYZxyz(24.4405, 15.6958, 59.4878)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51CD #94CD51
analogous
#5156CD #8A51CD #C851CD
triadic
#8A51CD #CD8A51 #51CD8A
tetradic
#8A51CD #CD5156 #94CD51 #51CDC8
square
#8A51CD #CD5156 #94CD51 #51CDC8
split-complementary
#8A51CD #CDC851 #56CD51
monochromatic
#4E257F #6B32AF #8A51CD #AA81DB #CAB0E8

Accessibility & contrast

On white

5.07
#8A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51CD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51CD#FFFFFF#000000##FFFFFF
##8A51CD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016DD1
Deuteranopia (green-blind)
#2C6ECA
Tritanopia (blue-blind)
#7D6B87
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a51cd;
/* rgb */ color: rgb(138, 81, 205);
/* oklch */ color: oklch(56.0% 0.186 301.9);
Tailwind
colors: {
  custom: {
    50: '#b084dd',
    500: '#8a51cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a51cd;
$custom-light: #b084dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51cd",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 267.581,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56009,
    "c": 0.18567,
    "h": 301.9
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#8A51CD
secondary
#BFD7A3
accent
#DF499A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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