#8A54C8#8A54C8

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

Color values

HEX#8A54C8
RGBrgb(138, 84, 200)
HSLhsl(268, 51%, 56%)
HSVhsv(268, 58%, 78%)
CMYKcmyk(31%, 58%, 0%, 21.6%)
CIE-LABlab(46.86, 45.40, -52.27)
CIE-LCHlch(46.86, 69.24, 310.98°)
OKLaboklab(56.12% 0.0945 -0.1478)
OKLCHoklch(56.12% 0.175 302.6)
XYZxyz(24.0745, 15.9140, 56.4358)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54C8 #92C854
analogous
#5458C8 #8A54C8 #C454C8
triadic
#8A54C8 #C88A54 #54C88A
tetradic
#8A54C8 #C85458 #92C854 #54C8C4
square
#8A54C8 #C85458 #92C854 #54C8C4
split-complementary
#8A54C8 #C8C454 #58C854
monochromatic
#4E277A #6B36A9 #8A54C8 #AA82D7 #C9B1E6

Accessibility & contrast

On white

5.02
#8A54C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A54C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54C8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54C8#FFFFFF#000000##FFFFFF
##8A54C81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECC
Deuteranopia (green-blind)
#376FC5
Tritanopia (blue-blind)
#7E6B86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a54c8;
/* rgb */ color: rgb(138, 84, 200);
/* oklch */ color: oklch(56.1% 0.175 302.6);
Tailwind
colors: {
  custom: {
    50: '#b086d9',
    500: '#8a54c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a54c8;
$custom-light: #b086d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54c8",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 267.931,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56119,
    "c": 0.17546,
    "h": 302.6
  },
  "luminance": 0.15914
}

Semantic roles & 50–950 ramp

primary
#8A54C8
secondary
#BED4A4
accent
#DB4D99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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