#8A54BA#8A54BA

#8A54BA is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.2% C 0.159 H 306.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A54BA
RGBrgb(138, 84, 186)
HSLhsl(272, 43%, 53%)
HSVhsv(272, 55%, 73%)
CMYKcmyk(25.8%, 54.8%, 0%, 27.1%)
CIE-LABlab(46.03, 42.00, -45.49)
CIE-LCHlch(46.03, 61.91, 312.71°)
OKLaboklab(55.24% 0.0941 -0.128)
OKLCHoklch(55.24% 0.159 306.3)
XYZxyz(22.5126, 15.2893, 48.2100)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54BA #84BA54
analogous
#5754BA #8A54BA #BA54B7
triadic
#8A54BA #BA8A54 #54BA8A
tetradic
#8A54BA #BA5754 #84BA54 #54B7BA
square
#8A54BA #BA5754 #84BA54 #54B7BA
split-complementary
#8A54BA #B7BA54 #54BA57
monochromatic
#4C2A69 #6B3C95 #8A54BA #A880CC #C6ABDD

Accessibility & contrast

On white

5.18
#8A54BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A54BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54BA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54BA#FFFFFF#000000##FFFFFF
##8A54BA1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326BBD
Deuteranopia (green-blind)
#446DB8
Tritanopia (blue-blind)
#82677F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a54ba;
/* rgb */ color: rgb(138, 84, 186);
/* oklch */ color: oklch(55.2% 0.159 306.3);
Tailwind
colors: {
  custom: {
    50: '#af86cf',
    500: '#8a54ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a54ba;
$custom-light: #af86cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54ba",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 271.765,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55238,
    "c": 0.15886,
    "h": 306.3
  },
  "luminance": 0.15289
}

Semantic roles & 50–950 ramp

primary
#8A54BA
secondary
#B4CB9F
accent
#D25690
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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