#8A54D5#8A54D5

#8A54D5 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.0% C 0.191 H 299.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A54D5
RGBrgb(138, 84, 213)
HSLhsl(265, 61%, 58%)
HSVhsv(265, 61%, 84%)
CMYKcmyk(35.2%, 60.6%, 0%, 16.5%)
CIE-LABlab(47.69, 48.64, -58.41)
CIE-LCHlch(47.69, 76.01, 309.79°)
OKLaboklab(56.98% 0.0942 -0.1659)
OKLCHoklch(56.98% 0.191 299.6)
XYZxyz(25.6589, 16.5478, 64.7801)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54D5 #9FD554
analogous
#545ED5 #8A54D5 #CA54D5
triadic
#8A54D5 #D58A54 #54D58A
tetradic
#8A54D5 #D5545E #9FD554 #54D5CA
square
#8A54D5 #D5545E #9FD554 #54D5CA
split-complementary
#8A54D5 #D5CA54 #5ED554
monochromatic
#4F228C #6A2EBD #8A54D5 #AC85E1 #CDB6ED

Accessibility & contrast

On white

4.87
#8A54D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A54D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54D5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54D5#FFFFFF#000000##FFFFFF
##8A54D51.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D9
Deuteranopia (green-blind)
#2470D2
Tritanopia (blue-blind)
#7A708D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a54d5;
/* rgb */ color: rgb(138, 84, 213);
/* oklch */ color: oklch(57.0% 0.191 299.6);
Tailwind
colors: {
  custom: {
    50: '#b187e3',
    500: '#8a54d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a54d5;
$custom-light: #b187e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54d5",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 213
  },
  "hsl": {
    "h": 265.116,
    "s": 60.563,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.19075,
    "h": 299.6
  },
  "luminance": 0.16548
}

Semantic roles & 50–950 ramp

primary
#8A54D5
secondary
#C7DCA9
accent
#E444A1
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A54D5

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

Preview Lab → · Contrast checker → · Palette generator →

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