#9A40D4#9A40D4

#9A40D4 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.219 H 308.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9A40D4
RGBrgb(154, 64, 212)
HSLhsl(276, 63%, 54%)
HSVhsv(276, 70%, 83%)
CMYKcmyk(27.4%, 69.8%, 0%, 16.9%)
CIE-LABlab(46.03, 61.48, -60.41)
CIE-LCHlch(46.03, 86.19, 315.50°)
OKLaboklab(56.19% 0.1374 -0.1711)
OKLCHoklch(56.19% 0.219 308.8)
XYZxyz(27.0411, 15.2907, 63.8015)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40D4 #7AD440
analogous
#5040D4 #9A40D4 #D440C4
triadic
#9A40D4 #D49A40 #40D49A
tetradic
#9A40D4 #D45040 #7AD440 #40C4D4
square
#9A40D4 #D45040 #7AD440 #40C4D4
split-complementary
#9A40D4 #C4D440 #40D450
monochromatic
#571C7D #7A27AF #9A40D4 #B472DF #CFA4EA

Accessibility & contrast

On white

5.17
#9A40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9A40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40D4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40D4#FFFFFF#000000##FFFFFF
##9A40D41.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#1E6ED1
Tritanopia (blue-blind)
#916186
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9a40d4;
/* rgb */ color: rgb(154, 64, 212);
/* oklch */ color: oklch(56.2% 0.219 308.8);
Tailwind
colors: {
  custom: {
    50: '#bc7ce2',
    500: '#9a40d4',
    950: '#000000',
  },
}
SCSS
$custom: #9a40d4;
$custom-light: #bc7ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40d4",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 276.486,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56194,
    "c": 0.21949,
    "h": 308.8
  },
  "luminance": 0.1529
}

Semantic roles & 50–950 ramp

primary
#9A40D4
secondary
#B1D798
accent
#E64282
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9A40D4

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

Preview Lab → · Contrast checker → · Palette generator →

#9A40D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva