#8A54DD#8A54DD

#8A54DD is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.5% C 0.200 H 298.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A54DD
RGBrgb(138, 84, 221)
HSLhsl(264, 67%, 60%)
HSVhsv(264, 62%, 87%)
CMYKcmyk(37.6%, 62%, 0%, 13.3%)
CIE-LABlab(48.21, 50.67, -62.11)
CIE-LCHlch(48.21, 80.16, 309.21°)
OKLaboklab(57.54% 0.0938 -0.1767)
OKLCHoklch(57.54% 0.2 298)
XYZxyz(26.6994, 16.9640, 70.2603)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54DD #A7DD54
analogous
#5462DD #8A54DD #CF54DD
triadic
#8A54DD #DD8A54 #54DD8A
tetradic
#8A54DD #DD5462 #A7DD54 #54DDCF
square
#8A54DD #DD5462 #A7DD54 #54DDCF
split-complementary
#8A54DD #DDCF54 #62DD54
monochromatic
#4E1E98 #6928CB #8A54DD #AD87E7 #D0BAF1

Accessibility & contrast

On white

4.78
#8A54DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8A54DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54DD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54DD#FFFFFF#000000##FFFFFF
##8A54DD1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E1
Deuteranopia (green-blind)
#0F71DA
Tritanopia (blue-blind)
#777291
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a54dd;
/* rgb */ color: rgb(138, 84, 221);
/* oklch */ color: oklch(57.5% 0.200 298.0);
Tailwind
colors: {
  custom: {
    50: '#b187e8',
    500: '#8a54dd',
    950: '#000000',
  },
}
SCSS
$custom: #8a54dd;
$custom-light: #b187e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54dd",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 263.65,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57537,
    "c": 0.20009,
    "h": 298
  },
  "luminance": 0.16964
}

Semantic roles & 50–950 ramp

primary
#8A54DD
secondary
#CCE1AC
accent
#EA3EA6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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