#8B51CA#8B51CA

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

Color values

HEX#8B51CA
RGBrgb(139, 81, 202)
HSLhsl(269, 53%, 55%)
HSVhsv(269, 60%, 79%)
CMYKcmyk(31.2%, 59.9%, 0%, 20.8%)
CIE-LABlab(46.50, 47.74, -54.01)
CIE-LCHlch(46.50, 72.08, 311.47°)
OKLaboklab(55.92% 0.0995 -0.1529)
OKLCHoklch(55.92% 0.182 303.1)
XYZxyz(24.2481, 15.6381, 57.6067)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51CA #90CA51
analogous
#5153CA #8B51CA #C751CA
triadic
#8B51CA #CA8B51 #51CA8B
tetradic
#8B51CA #CA5153 #90CA51 #51CAC7
square
#8B51CA #CA5153 #90CA51 #51CAC7
split-complementary
#8B51CA #CAC751 #53CA51
monochromatic
#4F257B #6C34AA #8B51CA #AA80D8 #CAAFE7

Accessibility & contrast

On white

5.09
#8B51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8B51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51CA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51CA#FFFFFF#000000##FFFFFF
##8B51CA1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6DCE
Deuteranopia (green-blind)
#316EC7
Tritanopia (blue-blind)
#7F6A86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8b51ca;
/* rgb */ color: rgb(139, 81, 202);
/* oklch */ color: oklch(55.9% 0.182 303.1);
Tailwind
colors: {
  custom: {
    50: '#b184db',
    500: '#8b51ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b51ca;
$custom-light: #b184db;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51ca",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 268.76,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.18241,
    "h": 303.1
  },
  "luminance": 0.15638
}

Semantic roles & 50–950 ramp

primary
#8B51CA
secondary
#BCD5A2
accent
#DD4B97
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8B51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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