#8A54B4#8A54B4

#8A54B4 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.152 H 308.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A54B4
RGBrgb(138, 84, 180)
HSLhsl(274, 39%, 52%)
HSVhsv(274, 53%, 71%)
CMYKcmyk(23.3%, 53.3%, 0%, 29.4%)
CIE-LABlab(45.69, 40.58, -42.53)
CIE-LCHlch(45.69, 58.78, 313.65°)
OKLaboklab(54.88% 0.0938 -0.1193)
OKLCHoklch(54.88% 0.152 308.2)
XYZxyz(21.8881, 15.0395, 44.9210)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54B4 #7EB454
analogous
#5A54B4 #8A54B4 #B454AE
triadic
#8A54B4 #B48A54 #54B48A
tetradic
#8A54B4 #B45A54 #7EB454 #54AEB4
square
#8A54B4 #B45A54 #7EB454 #54AEB4
split-complementary
#8A54B4 #AEB454 #54B45A
monochromatic
#4A2B62 #6A3E8D #8A54B4 #A77FC7 #C4A9D9

Accessibility & contrast

On white

5.24
#8A54B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A54B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54B4
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54B4#FFFFFF#000000##FFFFFF
##8A54B41.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB7
Deuteranopia (green-blind)
#486DB2
Tritanopia (blue-blind)
#84657C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a54b4;
/* rgb */ color: rgb(138, 84, 180);
/* oklch */ color: oklch(54.9% 0.152 308.2);
Tailwind
colors: {
  custom: {
    50: '#af86cb',
    500: '#8a54b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a54b4;
$custom-light: #af86cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54b4",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 180
  },
  "hsl": {
    "h": 273.75,
    "s": 39.024,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54878,
    "c": 0.15174,
    "h": 308.2
  },
  "luminance": 0.15039
}

Semantic roles & 50–950 ramp

primary
#8A54B4
secondary
#AFC79D
accent
#CF598D
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A54B4

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

Preview Lab → · Contrast checker → · Palette generator →

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