#9D40CD#9D40CD

#9D40CD is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.214 H 311.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9D40CD
RGBrgb(157, 64, 205)
HSLhsl(280, 59%, 53%)
HSVhsv(280, 69%, 80%)
CMYKcmyk(23.4%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.97, 60.59, -56.47)
CIE-LCHlch(45.97, 82.83, 317.02°)
OKLaboklab(56.08% 0.1421 -0.1595)
OKLCHoklch(56.08% 0.214 311.7)
XYZxyz(26.7554, 15.2434, 59.2786)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40CD #70CD40
analogous
#5640CD #9D40CD #CD40B7
triadic
#9D40CD #CD9D40 #40CD9D
tetradic
#9D40CD #CD5640 #70CD40 #40B7CD
square
#9D40CD #CD5640 #70CD40 #40B7CD
split-complementary
#9D40CD #B7CD40 #40CD56
monochromatic
#571E74 #7B2BA5 #9D40CD #B671DA #CFA1E6

Accessibility & contrast

On white

5.19
#9D40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9D40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40CD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40CD#FFFFFF#000000##FFFFFF
##9D40CD1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#2F6FCA
Tritanopia (blue-blind)
#975E82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d40cd;
/* rgb */ color: rgb(157, 64, 205);
/* oklch */ color: oklch(56.1% 0.214 311.7);
Tailwind
colors: {
  custom: {
    50: '#be7cdd',
    500: '#9d40cd',
    950: '#000000',
  },
}
SCSS
$custom: #9d40cd;
$custom-light: #be7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40cd",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 279.574,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.21358,
    "h": 311.7
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#9D40CD
secondary
#ABD396
accent
#E2467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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