#9640D7#9640D7

#9640D7 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.221 H 306.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9640D7
RGBrgb(150, 64, 215)
HSLhsl(274, 65%, 55%)
HSVhsv(274, 70%, 84%)
CMYKcmyk(30.2%, 70.2%, 0%, 15.7%)
CIE-LABlab(45.71, 61.35, -62.67)
CIE-LCHlch(45.71, 87.70, 314.39°)
OKLaboklab(55.92% 0.1318 -0.1779)
OKLCHoklch(55.92% 0.221 306.5)
XYZxyz(26.6742, 15.0574, 65.7779)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D7 #81D740
analogous
#4A40D7 #9640D7 #D740CD
triadic
#9640D7 #D79640 #40D796
tetradic
#9640D7 #D74A40 #81D740 #40CDD7
square
#9640D7 #D74A40 #81D740 #40CDD7
split-complementary
#9640D7 #CDD740 #40D74A
monochromatic
#551B81 #7726B4 #9640D7 #B273E2 #CEA5EC

Accessibility & contrast

On white

5.24
#9640D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9640D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D7#FFFFFF#000000##FFFFFF
##9640D71.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#046DD4
Tritanopia (blue-blind)
#8B6387
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9640d7;
/* rgb */ color: rgb(150, 64, 215);
/* oklch */ color: oklch(55.9% 0.221 306.5);
Tailwind
colors: {
  custom: {
    50: '#ba7ce4',
    500: '#9640d7',
    950: '#000000',
  },
}
SCSS
$custom: #9640d7;
$custom-light: #ba7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d7",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 274.172,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55922,
    "c": 0.22138,
    "h": 306.5
  },
  "luminance": 0.15057
}

Semantic roles & 50–950 ramp

primary
#9640D7
secondary
#B5D99A
accent
#E83F88
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9640D7

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

Preview Lab → · Contrast checker → · Palette generator →

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