#8A54DB#8A54DB

#8A54DB is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.4% C 0.198 H 298.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A54DB
RGBrgb(138, 84, 219)
HSLhsl(264, 65%, 59%)
HSVhsv(264, 62%, 86%)
CMYKcmyk(37%, 61.6%, 0%, 14.1%)
CIE-LABlab(48.08, 50.16, -61.19)
CIE-LCHlch(48.08, 79.13, 309.34°)
OKLaboklab(57.4% 0.0939 -0.174)
OKLCHoklch(57.4% 0.198 298.4)
XYZxyz(26.4345, 16.8581, 68.8653)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54DB #A5DB54
analogous
#5462DB #8A54DB #CD54DB
triadic
#8A54DB #DB8A54 #54DB8A
tetradic
#8A54DB #DB5462 #A5DB54 #54DBCD
square
#8A54DB #DB5462 #A5DB54 #54DBCD
split-complementary
#8A54DB #DBCD54 #62DB54
monochromatic
#4F1F95 #692AC8 #8A54DB #AD87E6 #CFB9F0

Accessibility & contrast

On white

4.80
#8A54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8A54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54DB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54DB#FFFFFF#000000##FFFFFF
##8A54DB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#1671D8
Tritanopia (blue-blind)
#777290
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a54db;
/* rgb */ color: rgb(138, 84, 219);
/* oklch */ color: oklch(57.4% 0.198 298.4);
Tailwind
colors: {
  custom: {
    50: '#b187e7',
    500: '#8a54db',
    950: '#000000',
  },
}
SCSS
$custom: #8a54db;
$custom-light: #b187e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54db",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 264,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57397,
    "c": 0.19776,
    "h": 298.4
  },
  "luminance": 0.16858
}

Semantic roles & 50–950 ramp

primary
#8A54DB
secondary
#CBE0AB
accent
#E840A5
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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