#8A51D7#8A51D7

#8A51D7 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.7% C 0.197 H 299.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A51D7
RGBrgb(138, 81, 215)
HSLhsl(266, 63%, 58%)
HSVhsv(266, 62%, 84%)
CMYKcmyk(35.8%, 62.3%, 0%, 15.7%)
CIE-LABlab(47.23, 50.73, -60.29)
CIE-LCHlch(47.23, 78.79, 310.08°)
OKLaboklab(56.69% 0.0976 -0.1714)
OKLCHoklch(56.69% 0.197 299.7)
XYZxyz(25.6864, 16.1942, 66.0493)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D7 #9ED751
analogous
#515BD7 #8A51D7 #CD51D7
triadic
#8A51D7 #D78A51 #51D78A
tetradic
#8A51D7 #D7515B #9ED751 #51D7CD
square
#8A51D7 #D7515B #9ED751 #51D7CD
split-complementary
#8A51D7 #D7CD51 #5BD751
monochromatic
#4F208D #6A2CBF #8A51D7 #AB83E2 #CDB5EE

Accessibility & contrast

On white

4.95
#8A51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D7#FFFFFF#000000##FFFFFF
##8A51D71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#186FD4
Tritanopia (blue-blind)
#796E8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a51d7;
/* rgb */ color: rgb(138, 81, 215);
/* oklch */ color: oklch(56.7% 0.197 299.7);
Tailwind
colors: {
  custom: {
    50: '#b185e4',
    500: '#8a51d7',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d7;
$custom-light: #b185e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d7",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 265.522,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56694,
    "c": 0.19721,
    "h": 299.7
  },
  "luminance": 0.16194
}

Semantic roles & 50–950 ramp

primary
#8A51D7
secondary
#C6DDA7
accent
#E642A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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