#9640D9#9640D9

#9640D9 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.223 H 306.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9640D9
RGBrgb(150, 64, 217)
HSLhsl(274, 67%, 55%)
HSVhsv(274, 71%, 85%)
CMYKcmyk(30.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(45.85, 61.80, -63.59)
CIE-LCHlch(45.85, 88.67, 314.18°)
OKLaboklab(56.07% 0.1315 -0.1806)
OKLCHoklch(56.07% 0.223 306)
XYZxyz(26.9327, 15.1608, 67.1397)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D9 #83D940
analogous
#4940D9 #9640D9 #D940D0
triadic
#9640D9 #D99640 #40D996
tetradic
#9640D9 #D94940 #83D940 #40D0D9
square
#9640D9 #D94940 #83D940 #40D0D9
split-complementary
#9640D9 #D0D940 #40D949
monochromatic
#561A84 #7724B7 #9640D9 #B273E3 #CEA6ED

Accessibility & contrast

On white

5.21
#9640D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9640D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D9
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D9#FFFFFF#000000##FFFFFF
##9640D91.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#8A6488
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9640d9;
/* rgb */ color: rgb(150, 64, 217);
/* oklch */ color: oklch(56.1% 0.223 306.0);
Tailwind
colors: {
  custom: {
    50: '#ba7ce6',
    500: '#9640d9',
    950: '#000000',
  },
}
SCSS
$custom: #9640d9;
$custom-light: #ba7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d9",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 273.725,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56067,
    "c": 0.22337,
    "h": 306
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#9640D9
secondary
#B6DA9A
accent
#EA3E89
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9640D9

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

Preview Lab → · Contrast checker → · Palette generator →

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