#8A51D8#8A51D8

#8A51D8 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.8% C 0.198 H 299.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A51D8
RGBrgb(138, 81, 216)
HSLhsl(265, 63%, 58%)
HSVhsv(265, 63%, 85%)
CMYKcmyk(36.1%, 62.5%, 0%, 15.3%)
CIE-LABlab(47.30, 50.98, -60.75)
CIE-LCHlch(47.30, 79.31, 310.00°)
OKLaboklab(56.76% 0.0975 -0.1727)
OKLCHoklch(56.76% 0.198 299.4)
XYZxyz(25.8153, 16.2457, 66.7281)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D8 #9FD851
analogous
#515BD8 #8A51D8 #CD51D8
triadic
#8A51D8 #D88A51 #51D88A
tetradic
#8A51D8 #D8515B #9FD851 #51D8CD
square
#8A51D8 #D8515B #9FD851 #51D8CD
split-complementary
#8A51D8 #D8CD51 #5BD851
monochromatic
#4F208F #6A2BC1 #8A51D8 #AC83E3 #CDB5EE

Accessibility & contrast

On white

4.94
#8A51D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A51D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D8#FFFFFF#000000##FFFFFF
##8A51D81.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#156FD5
Tritanopia (blue-blind)
#796F8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a51d8;
/* rgb */ color: rgb(138, 81, 216);
/* oklch */ color: oklch(56.8% 0.198 299.4);
Tailwind
colors: {
  custom: {
    50: '#b185e5',
    500: '#8a51d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d8;
$custom-light: #b185e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d8",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 265.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56764,
    "c": 0.19836,
    "h": 299.4
  },
  "luminance": 0.16246
}

Semantic roles & 50–950 ramp

primary
#8A51D8
secondary
#C7DDA8
accent
#E641A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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