#8A54E3#8A54E3

#8A54E3 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.0% C 0.207 H 296.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A54E3
RGBrgb(138, 84, 227)
HSLhsl(263, 72%, 61%)
HSVhsv(263, 63%, 89%)
CMYKcmyk(39.2%, 63%, 0%, 11%)
CIE-LABlab(48.62, 52.21, -64.85)
CIE-LCHlch(48.62, 83.26, 308.83°)
OKLaboklab(57.96% 0.0933 -0.1848)
OKLCHoklch(57.96% 0.207 296.8)
XYZxyz(27.5131, 17.2895, 74.5458)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54E3 #ADE354
analogous
#5465E3 #8A54E3 #D154E3
triadic
#8A54E3 #E38A54 #54E38A
tetradic
#8A54E3 #E35465 #ADE354 #54E3D1
square
#8A54E3 #E35465 #ADE354 #54E3D1
split-complementary
#8A54E3 #E3D154 #65E354
monochromatic
#4E1BA2 #6723D7 #8A54E3 #AE89EC #D2BDF4

Accessibility & contrast

On white

4.71
#8A54E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A54E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54E3
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54E3#FFFFFF#000000##FFFFFF
##8A54E31.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#747494
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a54e3;
/* rgb */ color: rgb(138, 84, 227);
/* oklch */ color: oklch(58.0% 0.207 296.8);
Tailwind
colors: {
  custom: {
    50: '#b287ed',
    500: '#8a54e3',
    950: '#000000',
  },
}
SCSS
$custom: #8a54e3;
$custom-light: #b287ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54e3",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 227
  },
  "hsl": {
    "h": 262.657,
    "s": 71.859,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57962,
    "c": 0.20704,
    "h": 296.8
  },
  "luminance": 0.1729
}

Semantic roles & 50–950 ramp

primary
#8A54E3
secondary
#D0E4AE
accent
#D4128B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54E3

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

Preview Lab → · Contrast checker → · Palette generator →

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