#8A51D9#8A51D9

#8A51D9 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.200 H 299.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A51D9
RGBrgb(138, 81, 217)
HSLhsl(265, 64%, 58%)
HSVhsv(265, 63%, 85%)
CMYKcmyk(36.4%, 62.7%, 0%, 14.9%)
CIE-LABlab(47.36, 51.23, -61.21)
CIE-LCHlch(47.36, 79.82, 309.93°)
OKLaboklab(56.83% 0.0974 -0.1741)
OKLCHoklch(56.83% 0.2 299.2)
XYZxyz(25.9449, 16.2976, 67.4110)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D9 #A0D951
analogous
#515CD9 #8A51D9 #CE51D9
triadic
#8A51D9 #D98A51 #51D98A
tetradic
#8A51D9 #D9515C #A0D951 #51D9CE
square
#8A51D9 #D9515C #A0D951 #51D9CE
split-complementary
#8A51D9 #D9CE51 #5CD951
monochromatic
#4F1F90 #6A2AC2 #8A51D9 #AC83E4 #CEB5EF

Accessibility & contrast

On white

4.93
#8A51D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A51D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D9
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D9#FFFFFF#000000##FFFFFF
##8A51D91.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#126FD6
Tritanopia (blue-blind)
#786F8E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a51d9;
/* rgb */ color: rgb(138, 81, 217);
/* oklch */ color: oklch(56.8% 0.200 299.2);
Tailwind
colors: {
  custom: {
    50: '#b185e6',
    500: '#8a51d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d9;
$custom-light: #b185e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d9",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 265.147,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56834,
    "c": 0.19951,
    "h": 299.2
  },
  "luminance": 0.16298
}

Semantic roles & 50–950 ramp

primary
#8A51D9
secondary
#C7DEA8
accent
#E741A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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