#8540AF#8540AF

#8540AF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.175 H 310.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8540AF
RGBrgb(133, 64, 175)
HSLhsl(277, 46%, 47%)
HSVhsv(277, 63%, 69%)
CMYKcmyk(24%, 63.4%, 0%, 31.4%)
CIE-LABlab(40.81, 48.70, -47.41)
CIE-LCHlch(40.81, 67.97, 315.77°)
OKLaboklab(51.08% 0.1132 -0.1336)
OKLCHoklch(51.08% 0.175 310.3)
XYZxyz(19.2426, 11.7489, 41.8032)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540AF #6AAF40
analogous
#4D40AF #8540AF #AF40A2
triadic
#8540AF #AF8540 #40AF85
tetradic
#8540AF #AF4D40 #6AAF40 #40A2AF
square
#8540AF #AF4D40 #6AAF40 #40A2AF
split-complementary
#8540AF #A2AF40 #40AF4D
monochromatic
#411F55 #633082 #8540AF #A265C7 #BD92D7

Accessibility & contrast

On white

6.27
#8540AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8540AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540AF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540AF#FFFFFF#000000##FFFFFF
##8540AF1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065DB2
Deuteranopia (green-blind)
#3361AC
Tritanopia (blue-blind)
#7F5672
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8540af;
/* rgb */ color: rgb(133, 64, 175);
/* oklch */ color: oklch(51.1% 0.175 310.3);
Tailwind
colors: {
  custom: {
    50: '#ac79c7',
    500: '#8540af',
    950: '#000000',
  },
}
SCSS
$custom: #8540af;
$custom-light: #ac79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8540af",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 277.297,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51083,
    "c": 0.17514,
    "h": 310.3
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#8540AF
secondary
#9EC388
accent
#D65284
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8540AF

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

Preview Lab → · Contrast checker → · Palette generator →

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