#8A54E8#8A54E8

#8A54E8 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.3% C 0.213 H 295.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A54E8
RGBrgb(138, 84, 232)
HSLhsl(262, 76%, 62%)
HSVhsv(262, 64%, 91%)
CMYKcmyk(40.5%, 63.8%, 0%, 9%)
CIE-LABlab(48.97, 53.49, -67.12)
CIE-LCHlch(48.97, 85.83, 308.56°)
OKLaboklab(58.32% 0.0929 -0.1915)
OKLCHoklch(58.32% 0.213 295.9)
XYZxyz(28.2132, 17.5695, 78.2331)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54E8 #B2E854
analogous
#5468E8 #8A54E8 #D454E8
triadic
#8A54E8 #E88A54 #54E88A
tetradic
#8A54E8 #E85468 #B2E854 #54E8D4
square
#8A54E8 #E85468 #B2E854 #54E8D4
split-complementary
#8A54E8 #E8D454 #68E854
monochromatic
#4D17AB #651EE1 #8A54E8 #AF8AEF #D4C0F7

Accessibility & contrast

On white

4.65
#8A54E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A54E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54E8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54E8#FFFFFF#000000##FFFFFF
##8A54E81.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#0072E5
Tritanopia (blue-blind)
#727697
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a54e8;
/* rgb */ color: rgb(138, 84, 232);
/* oklch */ color: oklch(58.3% 0.213 295.9);
Tailwind
colors: {
  custom: {
    50: '#b287f0',
    500: '#8a54e8',
    950: '#000000',
  },
}
SCSS
$custom: #8a54e8;
$custom-light: #b287f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54e8",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 261.892,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58323,
    "c": 0.2128,
    "h": 295.9
  },
  "luminance": 0.1757
}

Semantic roles & 50–950 ramp

primary
#8A54E8
secondary
#D3E7B1
accent
#D80D8E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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