#8A54B0#8A54B0

#8A54B0 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.6% C 0.147 H 309.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A54B0
RGBrgb(138, 84, 176)
HSLhsl(275, 37%, 51%)
HSVhsv(275, 52%, 69%)
CMYKcmyk(21.6%, 52.3%, 0%, 31%)
CIE-LABlab(45.47, 39.64, -40.53)
CIE-LCHlch(45.47, 56.70, 314.36°)
OKLaboklab(54.64% 0.0934 -0.1135)
OKLCHoklch(54.64% 0.147 309.5)
XYZxyz(21.4865, 14.8789, 42.8059)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54B0 #7AB054
analogous
#5C54B0 #8A54B0 #B054A8
triadic
#8A54B0 #B08A54 #54B08A
tetradic
#8A54B0 #B05C54 #7AB054 #54A8B0
square
#8A54B0 #B05C54 #7AB054 #54A8B0
split-complementary
#8A54B0 #A8B054 #54B05C
monochromatic
#492B5E #6A3F88 #8A54B0 #A77EC3 #C3A8D7

Accessibility & contrast

On white

5.28
#8A54B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A54B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54B0
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54B0#FFFFFF#000000##FFFFFF
##8A54B01.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B69B3
Deuteranopia (green-blind)
#4B6CAE
Tritanopia (blue-blind)
#85647A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a54b0;
/* rgb */ color: rgb(138, 84, 176);
/* oklch */ color: oklch(54.6% 0.147 309.5);
Tailwind
colors: {
  custom: {
    50: '#ae86c8',
    500: '#8a54b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a54b0;
$custom-light: #ae86c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54b0",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 176
  },
  "hsl": {
    "h": 275.217,
    "s": 36.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54644,
    "c": 0.147,
    "h": 309.5
  },
  "luminance": 0.14879
}

Semantic roles & 50–950 ramp

primary
#8A54B0
secondary
#ACC49C
accent
#CD5B8A
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A54B0

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

Preview Lab → · Contrast checker → · Palette generator →

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