#8540AC#8540AC

#8540AC is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.172 H 311.2°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8540AC
RGBrgb(133, 64, 172)
HSLhsl(278, 46%, 46%)
HSVhsv(278, 63%, 67%)
CMYKcmyk(22.7%, 62.8%, 0%, 32.5%)
CIE-LABlab(40.63, 48.03, -45.93)
CIE-LCHlch(40.63, 66.45, 316.28°)
OKLaboklab(50.89% 0.1133 -0.1293)
OKLCHoklch(50.89% 0.172 311.2)
XYZxyz(18.9513, 11.6323, 40.2687)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540AC #67AC40
analogous
#4F40AC #8540AC #AC409D
triadic
#8540AC #AC8540 #40AC85
tetradic
#8540AC #AC4F40 #67AC40 #409DAC
square
#8540AC #AC4F40 #67AC40 #409DAC
split-complementary
#8540AC #9DAC40 #40AC4F
monochromatic
#401F53 #632F7F #8540AC #A264C5 #BD91D6

Accessibility & contrast

On white

6.31
#8540AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8540AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540AC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540AC#FFFFFF#000000##FFFFFF
##8540AC1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105CAF
Deuteranopia (green-blind)
#3561A9
Tritanopia (blue-blind)
#805570
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8540ac;
/* rgb */ color: rgb(133, 64, 172);
/* oklch */ color: oklch(50.9% 0.172 311.2);
Tailwind
colors: {
  custom: {
    50: '#ac79c5',
    500: '#8540ac',
    950: '#000000',
  },
}
SCSS
$custom: #8540ac;
$custom-light: #ac79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8540ac",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 278.333,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50886,
    "c": 0.17193,
    "h": 311.2
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

primary
#8540AC
secondary
#9CC187
accent
#D55282
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8540AC

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

Preview Lab → · Contrast checker → · Palette generator →

#8540AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva