#8A51D0#8A51D0

#8A51D0 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.2% C 0.189 H 301.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A51D0
RGBrgb(138, 81, 208)
HSLhsl(267, 57%, 57%)
HSVhsv(267, 61%, 82%)
CMYKcmyk(33.7%, 61.1%, 0%, 18.4%)
CIE-LABlab(46.77, 48.98, -57.03)
CIE-LCHlch(46.77, 75.18, 310.66°)
OKLaboklab(56.21% 0.098 -0.1618)
OKLCHoklch(56.21% 0.189 301.2)
XYZxyz(24.8061, 15.8421, 61.4132)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D0 #97D051
analogous
#5158D0 #8A51D0 #CA51D0
triadic
#8A51D0 #D08A51 #51D08A
tetradic
#8A51D0 #D05158 #97D051 #51D0CA
square
#8A51D0 #D05158 #97D051 #51D0CA
split-complementary
#8A51D0 #D0CA51 #58D051
monochromatic
#4E2383 #6B30B3 #8A51D0 #AA81DD #CBB1EA

Accessibility & contrast

On white

5.04
#8A51D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A51D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D0
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D0#FFFFFF#000000##FFFFFF
##8A51D01.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED4
Deuteranopia (green-blind)
#276ECD
Tritanopia (blue-blind)
#7C6C89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a51d0;
/* rgb */ color: rgb(138, 81, 208);
/* oklch */ color: oklch(56.2% 0.189 301.2);
Tailwind
colors: {
  custom: {
    50: '#b185df',
    500: '#8a51d0',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d0;
$custom-light: #b185df;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d0",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 208
  },
  "hsl": {
    "h": 266.929,
    "s": 57.466,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56212,
    "c": 0.18914,
    "h": 301.2
  },
  "luminance": 0.15842
}

Semantic roles & 50–950 ramp

primary
#8A51D0
secondary
#C1D8A4
accent
#E1479C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51D0

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

Preview Lab → · Contrast checker → · Palette generator →

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