#8A54DC#8A54DC

#8A54DC is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.5% C 0.199 H 298.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A54DC
RGBrgb(138, 84, 220)
HSLhsl(264, 66%, 60%)
HSVhsv(264, 62%, 86%)
CMYKcmyk(37.3%, 61.8%, 0%, 13.7%)
CIE-LABlab(48.15, 50.42, -61.65)
CIE-LCHlch(48.15, 79.64, 309.28°)
OKLaboklab(57.47% 0.0939 -0.1754)
OKLCHoklch(57.47% 0.199 298.1)
XYZxyz(26.5666, 16.9109, 69.5607)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54DC #A6DC54
analogous
#5462DC #8A54DC #CE54DC
triadic
#8A54DC #DC8A54 #54DC8A
tetradic
#8A54DC #DC5462 #A6DC54 #54DCCE
square
#8A54DC #DC5462 #A6DC54 #54DCCE
split-complementary
#8A54DC #DCCE54 #62DC54
monochromatic
#4E1F97 #6929CA #8A54DC #AD87E6 #D0BAF1

Accessibility & contrast

On white

4.79
#8A54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8A54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54DC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54DC#FFFFFF#000000##FFFFFF
##8A54DC1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#1371D9
Tritanopia (blue-blind)
#777290
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a54dc;
/* rgb */ color: rgb(138, 84, 220);
/* oklch */ color: oklch(57.5% 0.199 298.1);
Tailwind
colors: {
  custom: {
    50: '#b187e8',
    500: '#8a54dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a54dc;
$custom-light: #b187e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54dc",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 263.824,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57467,
    "c": 0.19893,
    "h": 298.1
  },
  "luminance": 0.16911
}

Semantic roles & 50–950 ramp

primary
#8A54DC
secondary
#CBE0AC
accent
#E93FA5
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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