#8A54E6#8A54E6

#8A54E6 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.2% C 0.211 H 296.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A54E6
RGBrgb(138, 84, 230)
HSLhsl(262, 74%, 62%)
HSVhsv(262, 63%, 90%)
CMYKcmyk(40%, 63.5%, 0%, 9.8%)
CIE-LABlab(48.83, 52.98, -66.21)
CIE-LCHlch(48.83, 84.80, 308.66°)
OKLaboklab(58.18% 0.0931 -0.1888)
OKLCHoklch(58.18% 0.211 296.2)
XYZxyz(27.9308, 17.4565, 76.7454)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54E6 #B0E654
analogous
#5467E6 #8A54E6 #D354E6
triadic
#8A54E6 #E68A54 #54E68A
tetradic
#8A54E6 #E65467 #B0E654 #54E6D3
square
#8A54E6 #E65467 #B0E654 #54E6D3
split-complementary
#8A54E6 #E6D354 #67E654
monochromatic
#4D18A7 #6620DD #8A54E6 #AF89EE #D3BFF6

Accessibility & contrast

On white

4.68
#8A54E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8A54E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54E6
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54E6#FFFFFF#000000##FFFFFF
##8A54E61.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EB
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#737596
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a54e6;
/* rgb */ color: rgb(138, 84, 230);
/* oklch */ color: oklch(58.2% 0.211 296.2);
Tailwind
colors: {
  custom: {
    50: '#b287ef',
    500: '#8a54e6',
    950: '#000000',
  },
}
SCSS
$custom: #8a54e6;
$custom-light: #b287ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54e6",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 262.192,
    "s": 74.49,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58178,
    "c": 0.21051,
    "h": 296.2
  },
  "luminance": 0.17457
}

Semantic roles & 50–950 ramp

primary
#8A54E6
secondary
#D2E6B0
accent
#D70F8D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A54E6

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

Preview Lab → · Contrast checker → · Palette generator →

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