#8A51DE#8A51DE

#8A51DE is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.2% C 0.205 H 298.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A51DE
RGBrgb(138, 81, 222)
HSLhsl(264, 68%, 59%)
HSVhsv(264, 64%, 87%)
CMYKcmyk(37.8%, 63.5%, 0%, 12.9%)
CIE-LABlab(47.70, 52.49, -63.51)
CIE-LCHlch(47.70, 82.39, 309.57°)
OKLaboklab(57.19% 0.097 -0.1808)
OKLCHoklch(57.19% 0.205 298.2)
XYZxyz(26.6051, 16.5617, 70.8881)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51DE #A5DE51
analogous
#515FDE #8A51DE #D051DE
triadic
#8A51DE #DE8A51 #51DE8A
tetradic
#8A51DE #DE515F #A5DE51 #51DED0
square
#8A51DE #DE515F #A5DE51 #51DED0
split-complementary
#8A51DE #DED051 #5FDE51
monochromatic
#4F1D98 #6927CB #8A51DE #AD84E8 #CFB8F2

Accessibility & contrast

On white

4.87
#8A51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51DE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51DE#FFFFFF#000000##FFFFFF
##8A51DE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E2
Deuteranopia (green-blind)
#0070DB
Tritanopia (blue-blind)
#767190
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a51de;
/* rgb */ color: rgb(138, 81, 222);
/* oklch */ color: oklch(57.2% 0.205 298.2);
Tailwind
colors: {
  custom: {
    50: '#b285e9',
    500: '#8a51de',
    950: '#000000',
  },
}
SCSS
$custom: #8a51de;
$custom-light: #b285e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51de",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 264.255,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57188,
    "c": 0.20524,
    "h": 298.2
  },
  "luminance": 0.16562
}

Semantic roles & 50–950 ramp

primary
#8A51DE
secondary
#CBE1AA
accent
#EB3DA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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