#9640CD#9640CD

#9640CD is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.211 H 309.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9640CD
RGBrgb(150, 64, 205)
HSLhsl(277, 59%, 53%)
HSVhsv(277, 69%, 80%)
CMYKcmyk(26.8%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.02, 59.14, -58.04)
CIE-LCHlch(45.02, 82.86, 315.54°)
OKLaboklab(55.21% 0.1331 -0.1643)
OKLCHoklch(55.21% 0.211 309)
XYZxyz(25.4283, 14.5591, 59.2164)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640CD #77CD40
analogous
#5040CD #9640CD #CD40BD
triadic
#9640CD #CD9640 #40CD96
tetradic
#9640CD #CD5040 #77CD40 #40BDCD
square
#9640CD #CD5040 #77CD40 #40BDCD
split-complementary
#9640CD #BDCD40 #40CD50
monochromatic
#531E74 #752BA5 #9640CD #B171DA #CBA1E6

Accessibility & contrast

On white

5.37
#9640CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9640CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640CD
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640CD#FFFFFF#000000##FFFFFF
##9640CD1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#236CCA
Tritanopia (blue-blind)
#8E5F82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9640cd;
/* rgb */ color: rgb(150, 64, 205);
/* oklch */ color: oklch(55.2% 0.211 309.0);
Tailwind
colors: {
  custom: {
    50: '#b97bdd',
    500: '#9640cd',
    950: '#000000',
  },
}
SCSS
$custom: #9640cd;
$custom-light: #b97bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9640cd",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 276.596,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55214,
    "c": 0.21142,
    "h": 309
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#9640CD
secondary
#AED396
accent
#E24683
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9640CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva