#9D40C2#9D40C2

#9D40C2 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.4% C 0.203 H 314.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9D40C2
RGBrgb(157, 64, 194)
HSLhsl(283, 52%, 51%)
HSVhsv(283, 67%, 76%)
CMYKcmyk(19.1%, 67%, 0%, 23.9%)
CIE-LABlab(45.26, 58.31, -51.23)
CIE-LCHlch(45.26, 77.62, 318.69°)
OKLaboklab(55.36% 0.143 -0.1441)
OKLCHoklch(55.36% 0.203 314.8)
XYZxyz(25.4740, 14.7308, 52.5299)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40C2 #65C240
analogous
#5C40C2 #9D40C2 #C240A6
triadic
#9D40C2 #C29D40 #40C29D
tetradic
#9D40C2 #C25C40 #65C240 #40A6C2
square
#9D40C2 #C25C40 #65C240 #40A6C2
split-complementary
#9D40C2 #A6C240 #40C25C
monochromatic
#532167 #783095 #9D40C2 #B56ED1 #CD9DE0

Accessibility & contrast

On white

5.32
#9D40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9D40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40C2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40C2#FFFFFF#000000##FFFFFF
##9D40C21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#3C6EBF
Tritanopia (blue-blind)
#9A597C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9d40c2;
/* rgb */ color: rgb(157, 64, 194);
/* oklch */ color: oklch(55.4% 0.203 314.8);
Tailwind
colors: {
  custom: {
    50: '#be7cd5',
    500: '#9d40c2',
    950: '#000000',
  },
}
SCSS
$custom: #9d40c2;
$custom-light: #be7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40c2",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 282.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55357,
    "c": 0.20298,
    "h": 314.8
  },
  "luminance": 0.1473
}

Semantic roles & 50–950 ramp

primary
#9D40C2
secondary
#A2CC92
accent
#DB4D75
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9D40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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