#8A54D8#8A54D8

#8A54D8 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.2% C 0.194 H 299.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A54D8
RGBrgb(138, 84, 216)
HSLhsl(265, 63%, 59%)
HSVhsv(265, 61%, 85%)
CMYKcmyk(36.1%, 61.1%, 0%, 15.3%)
CIE-LABlab(47.88, 49.40, -59.81)
CIE-LCHlch(47.88, 77.57, 309.56°)
OKLaboklab(57.19% 0.0941 -0.17)
OKLCHoklch(57.19% 0.194 299)
XYZxyz(26.0432, 16.7015, 66.8041)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54D8 #A2D854
analogous
#5460D8 #8A54D8 #CC54D8
triadic
#8A54D8 #D88A54 #54D88A
tetradic
#8A54D8 #D85460 #A2D854 #54D8CC
square
#8A54D8 #D85460 #A2D854 #54D8CC
split-complementary
#8A54D8 #D8CC54 #60D854
monochromatic
#4F2191 #6A2CC2 #8A54D8 #AC86E3 #CEB8EF

Accessibility & contrast

On white

4.84
#8A54D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8A54D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54D8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54D8#FFFFFF#000000##FFFFFF
##8A54D81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#1E70D5
Tritanopia (blue-blind)
#79718E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a54d8;
/* rgb */ color: rgb(138, 84, 216);
/* oklch */ color: oklch(57.2% 0.194 299.0);
Tailwind
colors: {
  custom: {
    50: '#b187e5',
    500: '#8a54d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a54d8;
$custom-light: #b187e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54d8",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 264.545,
    "s": 62.857,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.19426,
    "h": 299
  },
  "luminance": 0.16702
}

Semantic roles & 50–950 ramp

primary
#8A54D8
secondary
#C9DEAA
accent
#E642A3
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54D8

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

Preview Lab → · Contrast checker → · Palette generator →

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