#8A54E1#8A54E1

#8A54E1 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.205 H 297.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A54E1
RGBrgb(138, 84, 225)
HSLhsl(263, 70%, 61%)
HSVhsv(263, 63%, 88%)
CMYKcmyk(38.7%, 62.7%, 0%, 11.8%)
CIE-LABlab(48.49, 51.69, -63.94)
CIE-LCHlch(48.49, 82.23, 308.95°)
OKLaboklab(57.82% 0.0935 -0.1821)
OKLCHoklch(57.82% 0.205 297.2)
XYZxyz(27.2387, 17.1797, 73.1005)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54E1 #ABE154
analogous
#5464E1 #8A54E1 #D154E1
triadic
#8A54E1 #E18A54 #54E18A
tetradic
#8A54E1 #E15464 #ABE154 #54E1D1
square
#8A54E1 #E15464 #ABE154 #54E1D1
split-complementary
#8A54E1 #E1D154 #64E154
monochromatic
#4E1C9F #6825D3 #8A54E1 #AE88EA #D1BCF3

Accessibility & contrast

On white

4.73
#8A54E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A54E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54E1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54E1#FFFFFF#000000##FFFFFF
##8A54E11.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E5
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#757493
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a54e1;
/* rgb */ color: rgb(138, 84, 225);
/* oklch */ color: oklch(57.8% 0.205 297.2);
Tailwind
colors: {
  custom: {
    50: '#b287eb',
    500: '#8a54e1',
    950: '#000000',
  },
}
SCSS
$custom: #8a54e1;
$custom-light: #b287eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54e1",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 262.979,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5782,
    "c": 0.20473,
    "h": 297.2
  },
  "luminance": 0.1718
}

Semantic roles & 50–950 ramp

primary
#8A54E1
secondary
#CFE3AE
accent
#D21389
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54E1

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

Preview Lab → · Contrast checker → · Palette generator →

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