#8A54AF#8A54AF

#8A54AF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.146 H 309.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A54AF
RGBrgb(138, 84, 175)
HSLhsl(276, 36%, 51%)
HSVhsv(276, 52%, 69%)
CMYKcmyk(21.1%, 52%, 0%, 31.4%)
CIE-LABlab(45.41, 39.41, -40.03)
CIE-LCHlch(45.41, 56.18, 314.55°)
OKLaboklab(54.59% 0.0933 -0.112)
OKLCHoklch(54.59% 0.146 309.8)
XYZxyz(21.3880, 14.8394, 42.2867)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54AF #79AF54
analogous
#5C54AF #8A54AF #AF54A7
triadic
#8A54AF #AF8A54 #54AF8A
tetradic
#8A54AF #AF5C54 #79AF54 #54A7AF
square
#8A54AF #AF5C54 #79AF54 #54A7AF
split-complementary
#8A54AF #A7AF54 #54AF5C
monochromatic
#492C5D #6A3F87 #8A54AF #A77EC3 #C3A7D6

Accessibility & contrast

On white

5.29
#8A54AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A54AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54AF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54AF#FFFFFF#000000##FFFFFF
##8A54AF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B69B2
Deuteranopia (green-blind)
#4C6CAD
Tritanopia (blue-blind)
#856379
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a54af;
/* rgb */ color: rgb(138, 84, 175);
/* oklch */ color: oklch(54.6% 0.146 309.8);
Tailwind
colors: {
  custom: {
    50: '#ae86c7',
    500: '#8a54af',
    950: '#000000',
  },
}
SCSS
$custom: #8a54af;
$custom-light: #ae86c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54af",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 275.604,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54586,
    "c": 0.14581,
    "h": 309.8
  },
  "luminance": 0.14839
}

Semantic roles & 50–950 ramp

primary
#8A54AF
secondary
#ACC49B
accent
#CC5C89
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A54AF

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

Preview Lab → · Contrast checker → · Palette generator →

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