#9D40CF#9D40CF

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

Color values

HEX#9D40CF
RGBrgb(157, 64, 207)
HSLhsl(279, 60%, 53%)
HSVhsv(279, 69%, 81%)
CMYKcmyk(24.2%, 69.1%, 0%, 18.8%)
CIE-LABlab(46.10, 61.02, -57.41)
CIE-LCHlch(46.10, 83.78, 316.74°)
OKLaboklab(56.22% 0.1419 -0.1622)
OKLCHoklch(56.22% 0.216 311.2)
XYZxyz(26.9984, 15.3405, 60.5582)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40CF #72CF40
analogous
#5540CF #9D40CF #CF40B9
triadic
#9D40CF #CF9D40 #40CF9D
tetradic
#9D40CF #CF5540 #72CF40 #40B9CF
square
#9D40CF #CF5540 #72CF40 #40B9CF
split-complementary
#9D40CF #B9CF40 #40CF55
monochromatic
#581E77 #7C2AA8 #9D40CF #B671DB #CFA2E8

Accessibility & contrast

On white

5.16
#9D40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9D40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40CF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40CF#FFFFFF#000000##FFFFFF
##9D40CF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#2D6FCC
Tritanopia (blue-blind)
#975F83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d40cf;
/* rgb */ color: rgb(157, 64, 207);
/* oklch */ color: oklch(56.2% 0.216 311.2);
Tailwind
colors: {
  custom: {
    50: '#be7cde',
    500: '#9d40cf',
    950: '#000000',
  },
}
SCSS
$custom: #9d40cf;
$custom-light: #be7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40cf",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 279.021,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5622,
    "c": 0.21551,
    "h": 311.2
  },
  "luminance": 0.1534
}

Semantic roles & 50–950 ramp

primary
#9D40CF
secondary
#ACD497
accent
#E3457C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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