#8A54BD#8A54BD

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

Color values

HEX#8A54BD
RGBrgb(138, 84, 189)
HSLhsl(271, 44%, 54%)
HSVhsv(271, 56%, 74%)
CMYKcmyk(27%, 55.6%, 0%, 25.9%)
CIE-LABlab(46.20, 42.72, -46.96)
CIE-LCHlch(46.20, 63.48, 312.29°)
OKLaboklab(55.42% 0.0943 -0.1323)
OKLCHoklch(55.42% 0.162 305.5)
XYZxyz(22.8349, 15.4182, 49.9073)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54BD #87BD54
analogous
#5554BD #8A54BD #BD54BB
triadic
#8A54BD #BD8A54 #54BD8A
tetradic
#8A54BD #BD5554 #87BD54 #54BBBD
square
#8A54BD #BD5554 #87BD54 #54BBBD
split-complementary
#8A54BD #BBBD54 #54BD55
monochromatic
#4C2A6D #6B3B99 #8A54BD #A880CE #C6ACDF

Accessibility & contrast

On white

5.14
#8A54BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8A54BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54BD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54BD#FFFFFF#000000##FFFFFF
##8A54BD1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6CC0
Deuteranopia (green-blind)
#416EBA
Tritanopia (blue-blind)
#816880
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a54bd;
/* rgb */ color: rgb(138, 84, 189);
/* oklch */ color: oklch(55.4% 0.162 305.5);
Tailwind
colors: {
  custom: {
    50: '#af86d1',
    500: '#8a54bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a54bd;
$custom-light: #af86d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54bd",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 270.857,
    "s": 44.304,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55423,
    "c": 0.16243,
    "h": 305.5
  },
  "luminance": 0.15418
}

Semantic roles & 50–950 ramp

primary
#8A54BD
secondary
#B6CDA0
accent
#D45492
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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