#8A51D3#8A51D3

#8A51D3 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.193 H 300.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A51D3
RGBrgb(138, 81, 211)
HSLhsl(266, 60%, 57%)
HSVhsv(266, 62%, 83%)
CMYKcmyk(34.6%, 61.6%, 0%, 17.3%)
CIE-LABlab(46.96, 49.73, -58.43)
CIE-LCHlch(46.96, 76.73, 310.40°)
OKLaboklab(56.42% 0.0978 -0.1659)
OKLCHoklch(56.42% 0.193 300.5)
XYZxyz(25.1787, 15.9911, 63.3755)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D3 #9AD351
analogous
#5159D3 #8A51D3 #CB51D3
triadic
#8A51D3 #D38A51 #51D38A
tetradic
#8A51D3 #D35159 #9AD351 #51D3CB
square
#8A51D3 #D35159 #9AD351 #51D3CB
split-complementary
#8A51D3 #D3CB51 #59D351
monochromatic
#4F2287 #6B2FB8 #8A51D3 #AB82DF #CCB3EC

Accessibility & contrast

On white

5.00
#8A51D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8A51D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D3#FFFFFF#000000##FFFFFF
##8A51D31.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#226ED0
Tritanopia (blue-blind)
#7A6D8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a51d3;
/* rgb */ color: rgb(138, 81, 211);
/* oklch */ color: oklch(56.4% 0.193 300.5);
Tailwind
colors: {
  custom: {
    50: '#b185e1',
    500: '#8a51d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d3;
$custom-light: #b185e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d3",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 266.308,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56417,
    "c": 0.1926,
    "h": 300.5
  },
  "luminance": 0.15991
}

Semantic roles & 50–950 ramp

primary
#8A51D3
secondary
#C3DAA6
accent
#E3459E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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