#8A54C2#8A54C2

#8A54C2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.7% C 0.168 H 304.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A54C2
RGBrgb(138, 84, 194)
HSLhsl(269, 47%, 55%)
HSVhsv(269, 57%, 76%)
CMYKcmyk(28.9%, 56.7%, 0%, 23.9%)
CIE-LABlab(46.50, 43.93, -49.39)
CIE-LCHlch(46.50, 66.10, 311.65°)
OKLaboklab(55.74% 0.0944 -0.1394)
OKLCHoklch(55.74% 0.168 304.1)
XYZxyz(23.3870, 15.6390, 52.8150)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54C2 #8CC254
analogous
#5455C2 #8A54C2 #C154C2
triadic
#8A54C2 #C28A54 #54C28A
tetradic
#8A54C2 #C25455 #8CC254 #54C2C1
square
#8A54C2 #C25455 #8CC254 #54C2C1
split-complementary
#8A54C2 #C2C154 #55C254
monochromatic
#4D2973 #6B39A0 #8A54C2 #A981D2 #C8AEE2

Accessibility & contrast

On white

5.09
#8A54C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A54C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54C2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54C2#FFFFFF#000000##FFFFFF
##8A54C21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286DC6
Deuteranopia (green-blind)
#3D6EBF
Tritanopia (blue-blind)
#806983
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a54c2;
/* rgb */ color: rgb(138, 84, 194);
/* oklch */ color: oklch(55.7% 0.168 304.1);
Tailwind
colors: {
  custom: {
    50: '#af86d5',
    500: '#8a54c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a54c2;
$custom-light: #af86d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54c2",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 269.455,
    "s": 47.414,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55735,
    "c": 0.16835,
    "h": 304.1
  },
  "luminance": 0.15639
}

Semantic roles & 50–950 ramp

primary
#8A54C2
secondary
#B9D0A2
accent
#D75195
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A54C2

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

Preview Lab → · Contrast checker → · Palette generator →

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