#9D40CA#9D40CA

#9D40CA is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.211 H 312.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9D40CA
RGBrgb(157, 64, 202)
HSLhsl(280, 57%, 52%)
HSVhsv(280, 68%, 79%)
CMYKcmyk(22.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(45.77, 59.96, -55.05)
CIE-LCHlch(45.77, 81.40, 317.44°)
OKLaboklab(55.88% 0.1424 -0.1553)
OKLCHoklch(55.88% 0.211 312.5)
XYZxyz(26.3968, 15.0999, 57.3897)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40CA #6DCA40
analogous
#5840CA #9D40CA #CA40B2
triadic
#9D40CA #CA9D40 #40CA9D
tetradic
#9D40CA #CA5840 #6DCA40 #40B2CA
square
#9D40CA #CA5840 #6DCA40 #40B2CA
split-complementary
#9D40CA #B2CA40 #40CA58
monochromatic
#561F70 #7B2CA0 #9D40CA #B670D7 #CEA0E5

Accessibility & contrast

On white

5.22
#9D40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9D40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40CA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40CA#FFFFFF#000000##FFFFFF
##9D40CA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#336EC7
Tritanopia (blue-blind)
#985D80
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9d40ca;
/* rgb */ color: rgb(157, 64, 202);
/* oklch */ color: oklch(55.9% 0.211 312.5);
Tailwind
colors: {
  custom: {
    50: '#be7cdb',
    500: '#9d40ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d40ca;
$custom-light: #be7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40ca",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 280.435,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55883,
    "c": 0.21068,
    "h": 312.5
  },
  "luminance": 0.15099
}

Semantic roles & 50–950 ramp

primary
#9D40CA
secondary
#A8D195
accent
#E04879
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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