#9D40D4#9D40D4

#9D40D4 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.220 H 309.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9D40D4
RGBrgb(157, 64, 212)
HSLhsl(278, 63%, 54%)
HSVhsv(278, 70%, 83%)
CMYKcmyk(25.9%, 69.8%, 0%, 16.9%)
CIE-LABlab(46.43, 62.08, -59.75)
CIE-LCHlch(46.43, 86.16, 316.10°)
OKLaboklab(56.56% 0.1413 -0.1691)
OKLCHoklch(56.56% 0.22 309.9)
XYZxyz(27.6194, 15.5889, 63.8286)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40D4 #77D440
analogous
#5340D4 #9D40D4 #D440C1
triadic
#9D40D4 #D49D40 #40D49D
tetradic
#9D40D4 #D45340 #77D440 #40C1D4
square
#9D40D4 #D45340 #77D440 #40C1D4
split-complementary
#9D40D4 #C1D440 #40D453
monochromatic
#591C7D #7D27AF #9D40D4 #B772DF #D0A4EA

Accessibility & contrast

On white

5.10
#9D40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9D40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40D4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40D4#FFFFFF#000000##FFFFFF
##9D40D41.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#246FD1
Tritanopia (blue-blind)
#956186
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d40d4;
/* rgb */ color: rgb(157, 64, 212);
/* oklch */ color: oklch(56.6% 0.220 309.9);
Tailwind
colors: {
  custom: {
    50: '#be7ce2',
    500: '#9d40d4',
    950: '#000000',
  },
}
SCSS
$custom: #9d40d4;
$custom-light: #be7ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40d4",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 277.703,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56564,
    "c": 0.22035,
    "h": 309.9
  },
  "luminance": 0.15588
}

Semantic roles & 50–950 ramp

primary
#9D40D4
secondary
#B0D798
accent
#E6427F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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