#8A51E4#8A51E4

#8A51E4 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.212 H 297.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A51E4
RGBrgb(138, 81, 228)
HSLhsl(263, 73%, 61%)
HSVhsv(263, 64%, 89%)
CMYKcmyk(39.5%, 64.5%, 0%, 10.6%)
CIE-LABlab(48.12, 54.01, -66.23)
CIE-LCHlch(48.12, 85.47, 309.20°)
OKLaboklab(57.62% 0.0965 -0.1889)
OKLCHoklch(57.62% 0.212 297.1)
XYZxyz(27.4236, 16.8891, 75.1988)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51E4 #ABE451
analogous
#5162E4 #8A51E4 #D351E4
triadic
#8A51E4 #E48A51 #51E48A
tetradic
#8A51E4 #E45162 #ABE451 #51E4D3
square
#8A51E4 #E45162 #ABE451 #51E4D3
split-complementary
#8A51E4 #E4D351 #62E451
monochromatic
#4E19A2 #6821D7 #8A51E4 #AE86EC #D1BBF4

Accessibility & contrast

On white

4.80
#8A51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8A51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51E4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51E4#FFFFFF#000000##FFFFFF
##8A51E41.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0070E1
Tritanopia (blue-blind)
#747393
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a51e4;
/* rgb */ color: rgb(138, 81, 228);
/* oklch */ color: oklch(57.6% 0.212 297.1);
Tailwind
colors: {
  custom: {
    50: '#b285ed',
    500: '#8a51e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a51e4;
$custom-light: #b285ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51e4",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 263.265,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.57621,
    "c": 0.21207,
    "h": 297.1
  },
  "luminance": 0.1689
}

Semantic roles & 50–950 ramp

primary
#8A51E4
secondary
#CFE4AC
accent
#D51089
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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