#8A54BF#8A54BF

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

Color values

HEX#8A54BF
RGBrgb(138, 84, 191)
HSLhsl(270, 46%, 54%)
HSVhsv(270, 56%, 75%)
CMYKcmyk(27.7%, 56%, 0%, 25.1%)
CIE-LABlab(46.32, 43.20, -47.93)
CIE-LCHlch(46.32, 64.53, 312.03°)
OKLaboklab(55.55% 0.0943 -0.1351)
OKLCHoklch(55.55% 0.165 304.9)
XYZxyz(23.0535, 15.5056, 51.0585)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54BF #89BF54
analogous
#5554BF #8A54BF #BF54BF
triadic
#8A54BF #BF8A54 #54BF8A
tetradic
#8A54BF #BF5554 #89BF54 #54BFBF
square
#8A54BF #BF5554 #89BF54 #54BFBF
split-complementary
#8A54BF #BFBF54 #54BF55
monochromatic
#4D2A6F #6B3A9C #8A54BF #A881D0 #C7ADE0

Accessibility & contrast

On white

5.12
#8A54BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A54BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54BF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54BF#FFFFFF#000000##FFFFFF
##8A54BF1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC3
Deuteranopia (green-blind)
#406EBC
Tritanopia (blue-blind)
#816881
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a54bf;
/* rgb */ color: rgb(138, 84, 191);
/* oklch */ color: oklch(55.5% 0.165 304.9);
Tailwind
colors: {
  custom: {
    50: '#af86d3',
    500: '#8a54bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a54bf;
$custom-light: #af86d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54bf",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 270.28,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55547,
    "c": 0.1648,
    "h": 304.9
  },
  "luminance": 0.15506
}

Semantic roles & 50–950 ramp

primary
#8A54BF
secondary
#B7CEA1
accent
#D55393
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A54BF

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

Preview Lab → · Contrast checker → · Palette generator →

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