#8A51E6#8A51E6

#8A51E6 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.8% C 0.214 H 296.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A51E6
RGBrgb(138, 81, 230)
HSLhsl(263, 75%, 61%)
HSVhsv(263, 65%, 90%)
CMYKcmyk(40%, 64.8%, 0%, 9.8%)
CIE-LABlab(48.26, 54.52, -67.14)
CIE-LCHlch(48.26, 86.49, 309.08°)
OKLaboklab(57.77% 0.0963 -0.1915)
OKLCHoklch(57.77% 0.214 296.7)
XYZxyz(27.7029, 17.0008, 76.6695)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51E6 #ADE651
analogous
#5162E6 #8A51E6 #D451E6
triadic
#8A51E6 #E68A51 #51E68A
tetradic
#8A51E6 #E65162 #ADE651 #51E6D4
square
#8A51E6 #E65162 #ADE651 #51E6D4
split-complementary
#8A51E6 #E6D451 #62E651
monochromatic
#4E18A5 #671FDA #8A51E6 #AE87EE #D2BCF5

Accessibility & contrast

On white

4.77
#8A51E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A51E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51E6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51E6#FFFFFF#000000##FFFFFF
##8A51E61.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#0071E3
Tritanopia (blue-blind)
#737495
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a51e6;
/* rgb */ color: rgb(138, 81, 230);
/* oklch */ color: oklch(57.8% 0.214 296.7);
Tailwind
colors: {
  custom: {
    50: '#b285ef',
    500: '#8a51e6',
    950: '#000000',
  },
}
SCSS
$custom: #8a51e6;
$custom-light: #b285ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51e6",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 262.953,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57767,
    "c": 0.21434,
    "h": 296.7
  },
  "luminance": 0.17001
}

Semantic roles & 50–950 ramp

primary
#8A51E6
secondary
#D0E5AD
accent
#D70E8A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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