#9D40D7#9D40D7

#9D40D7 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.8% C 0.223 H 309.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9D40D7
RGBrgb(157, 64, 215)
HSLhsl(277, 65%, 55%)
HSVhsv(277, 70%, 84%)
CMYKcmyk(27%, 70.2%, 0%, 15.7%)
CIE-LABlab(46.63, 62.72, -61.14)
CIE-LCHlch(46.63, 87.59, 315.74°)
OKLaboklab(56.77% 0.1409 -0.1732)
OKLCHoklch(56.77% 0.223 309.1)
XYZxyz(28.0013, 15.7417, 65.8402)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40D7 #7AD740
analogous
#5240D7 #9D40D7 #D740C5
triadic
#9D40D7 #D79D40 #40D79D
tetradic
#9D40D7 #D75240 #7AD740 #40C5D7
square
#9D40D7 #D75240 #7AD740 #40C5D7
split-complementary
#9D40D7 #C5D740 #40D752
monochromatic
#5A1B81 #7D26B4 #9D40D7 #B773E2 #D1A5EC

Accessibility & contrast

On white

5.06
#9D40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9D40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40D7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40D7#FFFFFF#000000##FFFFFF
##9D40D71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#1E70D4
Tritanopia (blue-blind)
#946287
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d40d7;
/* rgb */ color: rgb(157, 64, 215);
/* oklch */ color: oklch(56.8% 0.223 309.1);
Tailwind
colors: {
  custom: {
    50: '#bf7ce4',
    500: '#9d40d7',
    950: '#000000',
  },
}
SCSS
$custom: #9d40d7;
$custom-light: #bf7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40d7",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 276.954,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56773,
    "c": 0.22325,
    "h": 309.1
  },
  "luminance": 0.15741
}

Semantic roles & 50–950 ramp

primary
#9D40D7
secondary
#B2D99A
accent
#E83F80
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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