#8A54D4#8A54D4

#8A54D4 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.9% C 0.190 H 299.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A54D4
RGBrgb(138, 84, 212)
HSLhsl(265, 60%, 58%)
HSVhsv(265, 60%, 83%)
CMYKcmyk(34.9%, 60.4%, 0%, 16.9%)
CIE-LABlab(47.62, 48.39, -57.94)
CIE-LCHlch(47.62, 75.49, 309.87°)
OKLaboklab(56.92% 0.0943 -0.1645)
OKLCHoklch(56.92% 0.19 299.8)
XYZxyz(25.5323, 16.4972, 64.1137)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54D4 #9ED454
analogous
#545ED4 #8A54D4 #CA54D4
triadic
#8A54D4 #D48A54 #54D48A
tetradic
#8A54D4 #D4545E #9ED454 #54D4CA
square
#8A54D4 #D4545E #9ED454 #54D4CA
split-complementary
#8A54D4 #D4CA54 #5ED454
monochromatic
#4F238B #6A2FBC #8A54D4 #AB85E0 #CDB6ED

Accessibility & contrast

On white

4.88
#8A54D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A54D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54D4
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54D4#FFFFFF#000000##FFFFFF
##8A54D41.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D8
Deuteranopia (green-blind)
#2670D1
Tritanopia (blue-blind)
#7A6F8C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a54d4;
/* rgb */ color: rgb(138, 84, 212);
/* oklch */ color: oklch(56.9% 0.190 299.8);
Tailwind
colors: {
  custom: {
    50: '#b187e2',
    500: '#8a54d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a54d4;
$custom-light: #b187e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54d4",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 265.313,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56916,
    "c": 0.18958,
    "h": 299.8
  },
  "luminance": 0.16497
}

Semantic roles & 50–950 ramp

primary
#8A54D4
secondary
#C6DBA8
accent
#E345A0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A54D4

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

Preview Lab → · Contrast checker → · Palette generator →

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