#8A51D1#8A51D1

#8A51D1 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.190 H 301.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A51D1
RGBrgb(138, 81, 209)
HSLhsl(267, 58%, 57%)
HSVhsv(267, 61%, 82%)
CMYKcmyk(34%, 61.2%, 0%, 18%)
CIE-LABlab(46.83, 49.23, -57.50)
CIE-LCHlch(46.83, 75.69, 310.57°)
OKLaboklab(56.28% 0.0979 -0.1632)
OKLCHoklch(56.28% 0.19 301)
XYZxyz(24.9295, 15.8914, 62.0632)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D1 #98D151
analogous
#5158D1 #8A51D1 #CA51D1
triadic
#8A51D1 #D18A51 #51D18A
tetradic
#8A51D1 #D15158 #98D151 #51D1CA
square
#8A51D1 #D15158 #98D151 #51D1CA
split-complementary
#8A51D1 #D1CA51 #58D151
monochromatic
#4E2385 #6B30B5 #8A51D1 #AB81DE #CBB2EB

Accessibility & contrast

On white

5.03
#8A51D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A51D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D1#FFFFFF#000000##FFFFFF
##8A51D11.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#256ECE
Tritanopia (blue-blind)
#7B6C89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a51d1;
/* rgb */ color: rgb(138, 81, 209);
/* oklch */ color: oklch(56.3% 0.190 301.0);
Tailwind
colors: {
  custom: {
    50: '#b185e0',
    500: '#8a51d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d1;
$custom-light: #b185e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d1",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 209
  },
  "hsl": {
    "h": 266.719,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5628,
    "c": 0.19029,
    "h": 301
  },
  "luminance": 0.15892
}

Semantic roles & 50–950 ramp

primary
#8A51D1
secondary
#C2D9A5
accent
#E1469C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51D1

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

Preview Lab → · Contrast checker → · Palette generator →

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