#8A54BE#8A54BE

#8A54BE is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.164 H 305.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A54BE
RGBrgb(138, 84, 190)
HSLhsl(271, 45%, 54%)
HSVhsv(271, 56%, 75%)
CMYKcmyk(27.4%, 55.8%, 0%, 25.5%)
CIE-LABlab(46.26, 42.96, -47.45)
CIE-LCHlch(46.26, 64.01, 312.16°)
OKLaboklab(55.48% 0.0943 -0.1337)
OKLCHoklch(55.48% 0.164 305.2)
XYZxyz(22.9438, 15.4618, 50.4809)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54BE #88BE54
analogous
#5554BE #8A54BE #BE54BD
triadic
#8A54BE #BE8A54 #54BE8A
tetradic
#8A54BE #BE5554 #88BE54 #54BDBE
square
#8A54BE #BE5554 #88BE54 #54BDBE
split-complementary
#8A54BE #BDBE54 #54BE55
monochromatic
#4C2A6E #6B3B9A #8A54BE #A880CF #C7ADE0

Accessibility & contrast

On white

5.13
#8A54BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A54BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54BE
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54BE#FFFFFF#000000##FFFFFF
##8A54BE1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6CC2
Deuteranopia (green-blind)
#416EBB
Tritanopia (blue-blind)
#816881
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a54be;
/* rgb */ color: rgb(138, 84, 190);
/* oklch */ color: oklch(55.5% 0.164 305.2);
Tailwind
colors: {
  custom: {
    50: '#af86d2',
    500: '#8a54be',
    950: '#000000',
  },
}
SCSS
$custom: #8a54be;
$custom-light: #af86d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54be",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 190
  },
  "hsl": {
    "h": 270.566,
    "s": 44.915,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55484,
    "c": 0.16362,
    "h": 305.2
  },
  "luminance": 0.15462
}

Semantic roles & 50–950 ramp

primary
#8A54BE
secondary
#B6CEA0
accent
#D55393
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A54BE

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

Preview Lab → · Contrast checker → · Palette generator →

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