#8A51C8#8A51C8

#8A51C8 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.180 H 303.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A51C8
RGBrgb(138, 81, 200)
HSLhsl(269, 52%, 55%)
HSVhsv(269, 60%, 78%)
CMYKcmyk(31%, 59.5%, 0%, 21.6%)
CIE-LABlab(46.26, 47.01, -53.25)
CIE-LCHlch(46.26, 71.03, 311.44°)
OKLaboklab(55.68% 0.0982 -0.1507)
OKLCHoklch(55.68% 0.18 303.1)
XYZxyz(23.8466, 15.4583, 56.3598)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51C8 #8FC851
analogous
#5154C8 #8A51C8 #C551C8
triadic
#8A51C8 #C88A51 #51C88A
tetradic
#8A51C8 #C85154 #8FC851 #51C8C5
square
#8A51C8 #C85154 #8FC851 #51C8C5
split-complementary
#8A51C8 #C8C551 #54C851
monochromatic
#4E2679 #6B35A7 #8A51C8 #A980D7 #C9AEE5

Accessibility & contrast

On white

5.13
#8A51C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A51C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51C8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51C8#FFFFFF#000000##FFFFFF
##8A51C81.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146CCC
Deuteranopia (green-blind)
#336DC5
Tritanopia (blue-blind)
#7E6985
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a51c8;
/* rgb */ color: rgb(138, 81, 200);
/* oklch */ color: oklch(55.7% 0.180 303.1);
Tailwind
colors: {
  custom: {
    50: '#b084d9',
    500: '#8a51c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a51c8;
$custom-light: #b084d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51c8",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 268.739,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55676,
    "c": 0.17987,
    "h": 303.1
  },
  "luminance": 0.15458
}

Semantic roles & 50–950 ramp

primary
#8A51C8
secondary
#BBD3A1
accent
#DB4C97
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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