#8A51CA#8A51CA

#8A51CA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.8% C 0.182 H 302.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A51CA
RGBrgb(138, 81, 202)
HSLhsl(268, 53%, 55%)
HSVhsv(268, 60%, 79%)
CMYKcmyk(31.7%, 59.9%, 0%, 20.8%)
CIE-LABlab(46.38, 47.50, -54.20)
CIE-LCHlch(46.38, 72.07, 311.23°)
OKLaboklab(55.81% 0.0982 -0.1535)
OKLCHoklch(55.81% 0.182 302.6)
XYZxyz(24.0819, 15.5524, 57.5989)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51CA #91CA51
analogous
#5155CA #8A51CA #C651CA
triadic
#8A51CA #CA8A51 #51CA8A
tetradic
#8A51CA #CA5155 #91CA51 #51CAC6
square
#8A51CA #CA5155 #91CA51 #51CAC6
split-complementary
#8A51CA #CAC651 #55CA51
monochromatic
#4E257B #6B34AA #8A51CA #AA80D8 #C9AFE7

Accessibility & contrast

On white

5.11
#8A51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8A51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51CA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51CA#FFFFFF#000000##FFFFFF
##8A51CA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6DCE
Deuteranopia (green-blind)
#306EC7
Tritanopia (blue-blind)
#7E6A86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a51ca;
/* rgb */ color: rgb(138, 81, 202);
/* oklch */ color: oklch(55.8% 0.182 302.6);
Tailwind
colors: {
  custom: {
    50: '#b084db',
    500: '#8a51ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a51ca;
$custom-light: #b084db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51ca",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 268.264,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55809,
    "c": 0.18219,
    "h": 302.6
  },
  "luminance": 0.15552
}

Semantic roles & 50–950 ramp

primary
#8A51CA
secondary
#BDD5A2
accent
#DD4B98
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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