#8A51DC#8A51DC

#8A51DC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.0% C 0.203 H 298.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A51DC
RGBrgb(138, 81, 220)
HSLhsl(265, 67%, 59%)
HSVhsv(265, 63%, 86%)
CMYKcmyk(37.3%, 63.2%, 0%, 13.7%)
CIE-LABlab(47.57, 51.99, -62.59)
CIE-LCHlch(47.57, 81.37, 309.71°)
OKLaboklab(57.05% 0.0972 -0.1781)
OKLCHoklch(57.05% 0.203 298.6)
XYZxyz(26.3387, 16.4551, 69.4848)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51DC #A3DC51
analogous
#515EDC #8A51DC #CF51DC
triadic
#8A51DC #DC8A51 #51DC8A
tetradic
#8A51DC #DC515E #A3DC51 #51DCCF
square
#8A51DC #DC515E #A3DC51 #51DCCF
split-complementary
#8A51DC #DCCF51 #5EDC51
monochromatic
#4F1E95 #6A28C8 #8A51DC #AC84E6 #CFB7F0

Accessibility & contrast

On white

4.89
#8A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51DC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51DC#FFFFFF#000000##FFFFFF
##8A51DC1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#036FD9
Tritanopia (blue-blind)
#77708F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a51dc;
/* rgb */ color: rgb(138, 81, 220);
/* oklch */ color: oklch(57.0% 0.203 298.6);
Tailwind
colors: {
  custom: {
    50: '#b285e8',
    500: '#8a51dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a51dc;
$custom-light: #b285e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51dc",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 264.604,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57046,
    "c": 0.20295,
    "h": 298.6
  },
  "luminance": 0.16455
}

Semantic roles & 50–950 ramp

primary
#8A51DC
secondary
#C9E0A9
accent
#E93EA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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