#8540DB#8540DB

#8540DB is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.222 H 299.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8540DB
RGBrgb(133, 64, 219)
HSLhsl(267, 68%, 55%)
HSVhsv(267, 71%, 86%)
CMYKcmyk(39.3%, 70.8%, 0%, 14.1%)
CIE-LABlab(43.90, 59.11, -68.00)
CIE-LCHlch(43.90, 90.10, 311.00°)
OKLaboklab(54.27% 0.1081 -0.1942)
OKLCHoklch(54.27% 0.222 299.1)
XYZxyz(24.2892, 13.7675, 68.3818)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540DB #96DB40
analogous
#4048DB #8540DB #D340DB
triadic
#8540DB #DB8540 #40DB85
tetradic
#8540DB #DB4048 #96DB40 #40DBD3
square
#8540DB #DB4048 #96DB40 #40DBD3
split-complementary
#8540DB #DBD340 #48DB40
monochromatic
#4A1987 #6723BB #8540DB #A673E5 #C7A7EE

Accessibility & contrast

On white

5.59
#8540DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8540DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540DB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540DB#FFFFFF#000000##FFFFFF
##8540DB1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E0
Deuteranopia (green-blind)
#0066D8
Tritanopia (blue-blind)
#716689
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8540db;
/* rgb */ color: rgb(133, 64, 219);
/* oklch */ color: oklch(54.3% 0.222 299.1);
Tailwind
colors: {
  custom: {
    50: '#af7ae7',
    500: '#8540db',
    950: '#000000',
  },
}
SCSS
$custom: #8540db;
$custom-light: #af7ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#8540db",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 266.71,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54266,
    "c": 0.22221,
    "h": 299.1
  },
  "luminance": 0.13768
}

Semantic roles & 50–950 ramp

primary
#8540DB
secondary
#BFDC9B
accent
#EB3D9D
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8540DB

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

Preview Lab → · Contrast checker → · Palette generator →

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