#8A54C7#8A54C7

#8A54C7 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.1% C 0.174 H 302.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A54C7
RGBrgb(138, 84, 199)
HSLhsl(268, 51%, 55%)
HSVhsv(268, 58%, 78%)
CMYKcmyk(30.7%, 57.8%, 0%, 22%)
CIE-LABlab(46.80, 45.16, -51.80)
CIE-LCHlch(46.80, 68.71, 311.08°)
OKLaboklab(56.05% 0.0945 -0.1464)
OKLCHoklch(56.05% 0.174 302.8)
XYZxyz(23.9580, 15.8674, 55.8223)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54C7 #91C754
analogous
#5457C7 #8A54C7 #C454C7
triadic
#8A54C7 #C78A54 #54C78A
tetradic
#8A54C7 #C75457 #91C754 #54C7C4
square
#8A54C7 #C75457 #91C754 #54C7C4
split-complementary
#8A54C7 #C7C454 #57C754
monochromatic
#4E2879 #6B37A7 #8A54C7 #AA82D6 #C9B0E5

Accessibility & contrast

On white

5.03
#8A54C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A54C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54C7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54C7#FFFFFF#000000##FFFFFF
##8A54C71.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216ECB
Deuteranopia (green-blind)
#386FC4
Tritanopia (blue-blind)
#7E6B85
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a54c7;
/* rgb */ color: rgb(138, 84, 199);
/* oklch */ color: oklch(56.1% 0.174 302.8);
Tailwind
colors: {
  custom: {
    50: '#b086d9',
    500: '#8a54c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a54c7;
$custom-light: #b086d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54c7",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 199
  },
  "hsl": {
    "h": 268.174,
    "s": 50.661,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56054,
    "c": 0.17428,
    "h": 302.8
  },
  "luminance": 0.15867
}

Semantic roles & 50–950 ramp

primary
#8A54C7
secondary
#BDD3A3
accent
#DA4E98
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A54C7

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

Preview Lab → · Contrast checker → · Palette generator →

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