#9640D1#9640D1

#9640D1 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.215 H 308.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9640D1
RGBrgb(150, 64, 209)
HSLhsl(276, 61%, 54%)
HSVhsv(276, 69%, 82%)
CMYKcmyk(28.2%, 69.4%, 0%, 18%)
CIE-LABlab(45.30, 60.02, -59.90)
CIE-LCHlch(45.30, 84.80, 315.06°)
OKLaboklab(55.49% 0.1326 -0.1698)
OKLCHoklch(55.49% 0.215 308)
XYZxyz(25.9173, 14.7547, 61.7918)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D1 #7BD140
analogous
#4D40D1 #9640D1 #D140C3
triadic
#9640D1 #D19640 #40D196
tetradic
#9640D1 #D14D40 #7BD140 #40C3D1
square
#9640D1 #D14D40 #7BD140 #40C3D1
split-complementary
#9640D1 #C3D140 #40D14D
monochromatic
#541D79 #7629AB #9640D1 #B171DD #CCA3E9

Accessibility & contrast

On white

5.32
#9640D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9640D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D1
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D1#FFFFFF#000000##FFFFFF
##9640D11.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)
#0068D5
Deuteranopia (green-blind)
#1B6CCE
Tritanopia (blue-blind)
#8D6084
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9640d1;
/* rgb */ color: rgb(150, 64, 209);
/* oklch */ color: oklch(55.5% 0.215 308.0);
Tailwind
colors: {
  custom: {
    50: '#ba7ce0',
    500: '#9640d1',
    950: '#000000',
  },
}
SCSS
$custom: #9640d1;
$custom-light: #ba7ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d1",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 275.586,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55494,
    "c": 0.21541,
    "h": 308
  },
  "luminance": 0.14754
}

Semantic roles & 50–950 ramp

primary
#9640D1
secondary
#B1D597
accent
#E44485
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640D1

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

Preview Lab → · Contrast checker → · Palette generator →

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