#8A51DF#8A51DF

#8A51DF is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.206 H 298.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A51DF
RGBrgb(138, 81, 223)
HSLhsl(264, 69%, 60%)
HSVhsv(264, 64%, 87%)
CMYKcmyk(38.1%, 63.7%, 0%, 12.5%)
CIE-LABlab(47.77, 52.75, -63.96)
CIE-LCHlch(47.77, 82.91, 309.51°)
OKLaboklab(57.26% 0.097 -0.1822)
OKLCHoklch(57.26% 0.206 298)
XYZxyz(26.7396, 16.6155, 71.5960)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51DF #A6DF51
analogous
#515FDF #8A51DF #D151DF
triadic
#8A51DF #DF8A51 #51DF8A
tetradic
#8A51DF #DF515F #A6DF51 #51DFD1
square
#8A51DF #DF515F #A6DF51 #51DFD1
split-complementary
#8A51DF #DFD151 #5FDF51
monochromatic
#4E1C99 #6926CD #8A51DF #AD85E9 #D0B8F2

Accessibility & contrast

On white

4.86
#8A51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#8A51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51DF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51DF#FFFFFF#000000##FFFFFF
##8A51DF1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#767191
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a51df;
/* rgb */ color: rgb(138, 81, 223);
/* oklch */ color: oklch(57.3% 0.206 298.0);
Tailwind
colors: {
  custom: {
    50: '#b285ea',
    500: '#8a51df',
    950: '#000000',
  },
}
SCSS
$custom: #8a51df;
$custom-light: #b285ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51df",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 264.085,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5726,
    "c": 0.20638,
    "h": 298
  },
  "luminance": 0.16616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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