#8A54BB#8A54BB

#8A54BB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.3% C 0.160 H 306.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A54BB
RGBrgb(138, 84, 187)
HSLhsl(271, 43%, 53%)
HSVhsv(271, 55%, 73%)
CMYKcmyk(26.2%, 55.1%, 0%, 26.7%)
CIE-LABlab(46.09, 42.24, -45.98)
CIE-LCHlch(46.09, 62.44, 312.57°)
OKLaboklab(55.3% 0.0942 -0.1294)
OKLCHoklch(55.3% 0.16 306)
XYZxyz(22.6193, 15.3320, 48.7718)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54BB #85BB54
analogous
#5654BB #8A54BB #BB54B8
triadic
#8A54BB #BB8A54 #54BB8A
tetradic
#8A54BB #BB5654 #85BB54 #54B8BB
square
#8A54BB #BB5654 #85BB54 #54B8BB
split-complementary
#8A54BB #B8BB54 #54BB56
monochromatic
#4C2A6A #6B3C96 #8A54BB #A880CC #C6ACDE

Accessibility & contrast

On white

5.16
#8A54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54BB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54BB#FFFFFF#000000##FFFFFF
##8A54BB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316BBE
Deuteranopia (green-blind)
#436DB9
Tritanopia (blue-blind)
#82677F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a54bb;
/* rgb */ color: rgb(138, 84, 187);
/* oklch */ color: oklch(55.3% 0.160 306.0);
Tailwind
colors: {
  custom: {
    50: '#af86d0',
    500: '#8a54bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a54bb;
$custom-light: #af86d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54bb",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 271.456,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.553,
    "c": 0.16004,
    "h": 306
  },
  "luminance": 0.15332
}

Semantic roles & 50–950 ramp

primary
#8A54BB
secondary
#B4CC9F
accent
#D35591
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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