#8A54CC#8A54CC

#8A54CC is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.4% C 0.180 H 301.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A54CC
RGBrgb(138, 84, 204)
HSLhsl(267, 54%, 56%)
HSVhsv(267, 59%, 80%)
CMYKcmyk(32.4%, 58.8%, 0%, 20%)
CIE-LABlab(47.11, 46.39, -54.18)
CIE-LCHlch(47.11, 71.33, 310.57°)
OKLaboklab(56.38% 0.0945 -0.1534)
OKLCHoklch(56.38% 0.18 301.6)
XYZxyz(24.5481, 16.1035, 58.9300)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54CC #96CC54
analogous
#545ACC #8A54CC #C654CC
triadic
#8A54CC #CC8A54 #54CC8A
tetradic
#8A54CC #CC545A #96CC54 #54CCC6
square
#8A54CC #CC545A #96CC54 #54CCC6
split-complementary
#8A54CC #CCC654 #5ACC54
monochromatic
#4E2680 #6B34AF #8A54CC #AA83DA #CBB2E8

Accessibility & contrast

On white

4.98
#8A54CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8A54CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54CC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54CC#FFFFFF#000000##FFFFFF
##8A54CC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176FD0
Deuteranopia (green-blind)
#326FC9
Tritanopia (blue-blind)
#7D6D88
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a54cc;
/* rgb */ color: rgb(138, 84, 204);
/* oklch */ color: oklch(56.4% 0.180 301.6);
Tailwind
colors: {
  custom: {
    50: '#b086dc',
    500: '#8a54cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a54cc;
$custom-light: #b086dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54cc",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 267,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5638,
    "c": 0.18018,
    "h": 301.6
  },
  "luminance": 0.16104
}

Semantic roles & 50–950 ramp

primary
#8A54CC
secondary
#C0D7A5
accent
#DD4A9B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A54CC

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

Preview Lab → · Contrast checker → · Palette generator →

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