#8A54B3#8A54B3

#8A54B3 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.8% C 0.151 H 308.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A54B3
RGBrgb(138, 84, 179)
HSLhsl(274, 38%, 52%)
HSVhsv(274, 53%, 70%)
CMYKcmyk(22.9%, 53.1%, 0%, 29.8%)
CIE-LABlab(45.63, 40.34, -42.03)
CIE-LCHlch(45.63, 58.26, 313.82°)
OKLaboklab(54.82% 0.0937 -0.1179)
OKLCHoklch(54.82% 0.151 308.5)
XYZxyz(21.7866, 14.9989, 44.3864)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54B3 #7DB354
analogous
#5B54B3 #8A54B3 #B354AD
triadic
#8A54B3 #B38A54 #54B38A
tetradic
#8A54B3 #B35B54 #7DB354 #54ADB3
square
#8A54B3 #B35B54 #7DB354 #54ADB3
split-complementary
#8A54B3 #ADB354 #54B35B
monochromatic
#4A2B61 #6A3E8C #8A54B3 #A77EC6 #C4A9D9

Accessibility & contrast

On white

5.25
#8A54B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A54B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54B3
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54B3#FFFFFF#000000##FFFFFF
##8A54B31.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386AB6
Deuteranopia (green-blind)
#496DB1
Tritanopia (blue-blind)
#84657B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a54b3;
/* rgb */ color: rgb(138, 84, 179);
/* oklch */ color: oklch(54.8% 0.151 308.5);
Tailwind
colors: {
  custom: {
    50: '#ae86ca',
    500: '#8a54b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a54b3;
$custom-light: #ae86ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54b3",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 274.105,
    "s": 38.462,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54819,
    "c": 0.15056,
    "h": 308.5
  },
  "luminance": 0.14999
}

Semantic roles & 50–950 ramp

primary
#8A54B3
secondary
#AFC69D
accent
#CE598C
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A54B3

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

Preview Lab → · Contrast checker → · Palette generator →

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