#8A51CB#8A51CB

#8A51CB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.183 H 302.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A51CB
RGBrgb(138, 81, 203)
HSLhsl(268, 54%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32%, 60.1%, 0%, 20.4%)
CIE-LABlab(46.45, 47.75, -54.67)
CIE-LCHlch(46.45, 72.59, 311.13°)
OKLaboklab(55.88% 0.0981 -0.1549)
OKLCHoklch(55.88% 0.183 302.4)
XYZxyz(24.2007, 15.5999, 58.2244)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51CB #92CB51
analogous
#5155CB #8A51CB #C751CB
triadic
#8A51CB #CB8A51 #51CB8A
tetradic
#8A51CB #CB5155 #92CB51 #51CBC7
square
#8A51CB #CB5155 #92CB51 #51CBC7
split-complementary
#8A51CB #CBC751 #55CB51
monochromatic
#4E257C #6B33AC #8A51CB #AA80D9 #C9AFE7

Accessibility & contrast

On white

5.10
#8A51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51CB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51CB#FFFFFF#000000##FFFFFF
##8A51CB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6DCF
Deuteranopia (green-blind)
#2F6EC8
Tritanopia (blue-blind)
#7D6A86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a51cb;
/* rgb */ color: rgb(138, 81, 203);
/* oklch */ color: oklch(55.9% 0.183 302.4);
Tailwind
colors: {
  custom: {
    50: '#b084db',
    500: '#8a51cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a51cb;
$custom-light: #b084db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51cb",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 268.033,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55875,
    "c": 0.18335,
    "h": 302.4
  },
  "luminance": 0.156
}

Semantic roles & 50–950 ramp

primary
#8A51CB
secondary
#BED5A3
accent
#DD4A99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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