#8A54E5#8A54E5

#8A54E5 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.1% C 0.209 H 296.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8A54E5
RGBrgb(138, 84, 229)
HSLhsl(262, 74%, 61%)
HSVhsv(262, 63%, 90%)
CMYKcmyk(39.7%, 63.3%, 0%, 10.2%)
CIE-LABlab(48.76, 52.72, -65.76)
CIE-LCHlch(48.76, 84.28, 308.72°)
OKLaboklab(58.11% 0.0932 -0.1875)
OKLCHoklch(58.11% 0.209 296.4)
XYZxyz(27.7907, 17.4005, 76.0080)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54E5 #AFE554
analogous
#5467E5 #8A54E5 #D354E5
triadic
#8A54E5 #E58A54 #54E58A
tetradic
#8A54E5 #E55467 #AFE554 #54E5D3
square
#8A54E5 #E55467 #AFE554 #54E5D3
split-complementary
#8A54E5 #E5D354 #67E554
monochromatic
#4D19A5 #6621DB #8A54E5 #AE89ED #D3BEF5

Accessibility & contrast

On white

4.69
#8A54E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8A54E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54E5
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54E5#FFFFFF#000000##FFFFFF
##8A54E51.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EA
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#737595
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a54e5;
/* rgb */ color: rgb(138, 84, 229);
/* oklch */ color: oklch(58.1% 0.209 296.4);
Tailwind
colors: {
  custom: {
    50: '#b287ee',
    500: '#8a54e5',
    950: '#000000',
  },
}
SCSS
$custom: #8a54e5;
$custom-light: #b287ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54e5",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 229
  },
  "hsl": {
    "h": 262.345,
    "s": 73.604,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58106,
    "c": 0.20935,
    "h": 296.4
  },
  "luminance": 0.17401
}

Semantic roles & 50–950 ramp

primary
#8A54E5
secondary
#D1E6AF
accent
#D6108C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54E5

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

Preview Lab → · Contrast checker → · Palette generator →

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