#8A51CF#8A51CF

#8A51CF is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.188 H 301.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A51CF
RGBrgb(138, 81, 207)
HSLhsl(267, 57%, 56%)
HSVhsv(267, 61%, 81%)
CMYKcmyk(33.3%, 60.9%, 0%, 18.8%)
CIE-LABlab(46.70, 48.74, -56.56)
CIE-LCHlch(46.70, 74.66, 310.75°)
OKLaboklab(56.14% 0.098 -0.1604)
OKLCHoklch(56.14% 0.188 301.4)
XYZxyz(24.6835, 15.7930, 60.7673)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51CF #96CF51
analogous
#5157CF #8A51CF #C951CF
triadic
#8A51CF #CF8A51 #51CF8A
tetradic
#8A51CF #CF5157 #96CF51 #51CFC9
square
#8A51CF #CF5157 #96CF51 #51CFC9
split-complementary
#8A51CF #CFC951 #57CF51
monochromatic
#4E2482 #6B31B2 #8A51CF #AA81DC #CBB1E9

Accessibility & contrast

On white

5.05
#8A51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51CF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51CF#FFFFFF#000000##FFFFFF
##8A51CF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#296ECC
Tritanopia (blue-blind)
#7C6C88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a51cf;
/* rgb */ color: rgb(138, 81, 207);
/* oklch */ color: oklch(56.1% 0.188 301.4);
Tailwind
colors: {
  custom: {
    50: '#b085de',
    500: '#8a51cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a51cf;
$custom-light: #b085de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51cf",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 267.143,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56144,
    "c": 0.18799,
    "h": 301.4
  },
  "luminance": 0.15793
}

Semantic roles & 50–950 ramp

primary
#8A51CF
secondary
#C0D8A4
accent
#E0489B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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