#8A51DB#8A51DB

#8A51DB is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.0% C 0.202 H 298.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A51DB
RGBrgb(138, 81, 219)
HSLhsl(265, 66%, 59%)
HSVhsv(265, 63%, 86%)
CMYKcmyk(37%, 63%, 0%, 14.1%)
CIE-LABlab(47.50, 51.73, -62.13)
CIE-LCHlch(47.50, 80.85, 309.78°)
OKLaboklab(56.97% 0.0973 -0.1768)
OKLCHoklch(56.97% 0.202 298.8)
XYZxyz(26.2067, 16.4023, 68.7894)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51DB #A2DB51
analogous
#515DDB #8A51DB #CF51DB
triadic
#8A51DB #DB8A51 #51DB8A
tetradic
#8A51DB #DB515D #A2DB51 #51DBCF
square
#8A51DB #DB515D #A2DB51 #51DBCF
split-complementary
#8A51DB #DBCF51 #5DDB51
monochromatic
#4F1E93 #6A29C6 #8A51DB #AC84E5 #CEB6F0

Accessibility & contrast

On white

4.91
#8A51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51DB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51DB#FFFFFF#000000##FFFFFF
##8A51DB1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#096FD8
Tritanopia (blue-blind)
#77708F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a51db;
/* rgb */ color: rgb(138, 81, 219);
/* oklch */ color: oklch(57.0% 0.202 298.8);
Tailwind
colors: {
  custom: {
    50: '#b185e7',
    500: '#8a51db',
    950: '#000000',
  },
}
SCSS
$custom: #8a51db;
$custom-light: #b185e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51db",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 264.783,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56975,
    "c": 0.2018,
    "h": 298.8
  },
  "luminance": 0.16403
}

Semantic roles & 50–950 ramp

primary
#8A51DB
secondary
#C9DFA9
accent
#E93FA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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