#8A54BC#8A54BC

#8A54BC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.4% C 0.161 H 305.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A54BC
RGBrgb(138, 84, 188)
HSLhsl(271, 44%, 53%)
HSVhsv(271, 55%, 74%)
CMYKcmyk(26.6%, 55.3%, 0%, 26.3%)
CIE-LABlab(46.14, 42.48, -46.47)
CIE-LCHlch(46.14, 62.96, 312.43°)
OKLaboklab(55.36% 0.0942 -0.1308)
OKLCHoklch(55.36% 0.161 305.8)
XYZxyz(22.7267, 15.3749, 49.3376)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54BC #86BC54
analogous
#5654BC #8A54BC #BC54BA
triadic
#8A54BC #BC8A54 #54BC8A
tetradic
#8A54BC #BC5654 #86BC54 #54BABC
square
#8A54BC #BC5654 #86BC54 #54BABC
split-complementary
#8A54BC #BABC54 #54BC56
monochromatic
#4C2A6B #6B3B97 #8A54BC #A880CD #C6ACDE

Accessibility & contrast

On white

5.15
#8A54BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A54BC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54BC#FFFFFF#000000##FFFFFF
##8A54BC1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306CBF
Deuteranopia (green-blind)
#426EB9
Tritanopia (blue-blind)
#826780
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a54bc;
/* rgb */ color: rgb(138, 84, 188);
/* oklch */ color: oklch(55.4% 0.161 305.8);
Tailwind
colors: {
  custom: {
    50: '#af86d1',
    500: '#8a54bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a54bc;
$custom-light: #af86d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54bc",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 271.154,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55361,
    "c": 0.16124,
    "h": 305.8
  },
  "luminance": 0.15375
}

Semantic roles & 50–950 ramp

primary
#8A54BC
secondary
#B5CCA0
accent
#D35491
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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