#9540DB#9540DB

#9540DB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.225 H 305.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9540DB
RGBrgb(149, 64, 219)
HSLhsl(273, 68%, 55%)
HSVhsv(273, 71%, 86%)
CMYKcmyk(32%, 70.8%, 0%, 14.1%)
CIE-LABlab(45.87, 62.06, -64.71)
CIE-LCHlch(45.87, 89.66, 313.80°)
OKLaboklab(56.09% 0.1298 -0.1839)
OKLCHoklch(56.09% 0.225 305.2)
XYZxyz(27.0111, 15.1710, 68.5094)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540DB #86DB40
analogous
#4740DB #9540DB #DB40D4
triadic
#9540DB #DB9540 #40DB95
tetradic
#9540DB #DB4740 #86DB40 #40D4DB
square
#9540DB #DB4740 #86DB40 #40D4DB
split-complementary
#9540DB #D4DB40 #40DB47
monochromatic
#561987 #7623BB #9540DB #B273E5 #CEA7EE

Accessibility & contrast

On white

5.21
#9540DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9540DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540DB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540DB#FFFFFF#000000##FFFFFF
##9540DB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#886489
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9540db;
/* rgb */ color: rgb(149, 64, 219);
/* oklch */ color: oklch(56.1% 0.225 305.2);
Tailwind
colors: {
  custom: {
    50: '#ba7ce7',
    500: '#9540db',
    950: '#000000',
  },
}
SCSS
$custom: #9540db;
$custom-light: #ba7ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9540db",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 272.903,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56094,
    "c": 0.22514,
    "h": 305.2
  },
  "luminance": 0.15171
}

Semantic roles & 50–950 ramp

primary
#9540DB
secondary
#B8DC9B
accent
#EB3D8B
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9540DB

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

Preview Lab → · Contrast checker → · Palette generator →

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