#8A54E7#8A54E7

#8A54E7 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.3% C 0.212 H 296.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A54E7
RGBrgb(138, 84, 231)
HSLhsl(262, 75%, 62%)
HSVhsv(262, 64%, 91%)
CMYKcmyk(40.3%, 63.6%, 0%, 9.4%)
CIE-LABlab(48.90, 53.24, -66.66)
CIE-LCHlch(48.90, 85.31, 308.61°)
OKLaboklab(58.25% 0.093 -0.1901)
OKLCHoklch(58.25% 0.212 296.1)
XYZxyz(28.0716, 17.5129, 77.4871)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54E7 #B1E754
analogous
#5468E7 #8A54E7 #D454E7
triadic
#8A54E7 #E78A54 #54E78A
tetradic
#8A54E7 #E75468 #B1E754 #54E7D4
square
#8A54E7 #E75468 #B1E754 #54E7D4
split-complementary
#8A54E7 #E7D454 #68E754
monochromatic
#4D18A9 #661FDF #8A54E7 #AF8AEF #D3BFF6

Accessibility & contrast

On white

4.66
#8A54E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A54E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54E7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54E7#FFFFFF#000000##FFFFFF
##8A54E71.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#0072E4
Tritanopia (blue-blind)
#727696
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a54e7;
/* rgb */ color: rgb(138, 84, 231);
/* oklch */ color: oklch(58.3% 0.212 296.1);
Tailwind
colors: {
  custom: {
    50: '#b287ef',
    500: '#8a54e7',
    950: '#000000',
  },
}
SCSS
$custom: #8a54e7;
$custom-light: #b287ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54e7",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 262.041,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5825,
    "c": 0.21165,
    "h": 296.1
  },
  "luminance": 0.17513
}

Semantic roles & 50–950 ramp

primary
#8A54E7
secondary
#D3E7B0
accent
#D80E8D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A54E7

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

Preview Lab → · Contrast checker → · Palette generator →

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