#9640D6#9640D6

#9640D6 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.9% C 0.220 H 306.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9640D6
RGBrgb(150, 64, 214)
HSLhsl(274, 65%, 55%)
HSVhsv(274, 70%, 84%)
CMYKcmyk(29.9%, 70.1%, 0%, 16.1%)
CIE-LABlab(45.64, 61.13, -62.21)
CIE-LCHlch(45.64, 87.22, 314.50°)
OKLaboklab(55.85% 0.1319 -0.1766)
OKLCHoklch(55.85% 0.22 306.8)
XYZxyz(26.5461, 15.0062, 65.1033)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D6 #80D640
analogous
#4B40D6 #9640D6 #D640CB
triadic
#9640D6 #D69640 #40D696
tetradic
#9640D6 #D64B40 #80D640 #40CBD6
square
#9640D6 #D64B40 #80D640 #40CBD6
split-complementary
#9640D6 #CBD640 #40D64B
monochromatic
#551B80 #7726B2 #9640D6 #B272E1 #CDA5EC

Accessibility & contrast

On white

5.25
#9640D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9640D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D6#FFFFFF#000000##FFFFFF
##9640D61.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#096DD3
Tritanopia (blue-blind)
#8B6287
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9640d6;
/* rgb */ color: rgb(150, 64, 214);
/* oklch */ color: oklch(55.9% 0.220 306.8);
Tailwind
colors: {
  custom: {
    50: '#ba7ce3',
    500: '#9640d6',
    950: '#000000',
  },
}
SCSS
$custom: #9640d6;
$custom-light: #ba7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d6",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 274.4,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5585,
    "c": 0.22039,
    "h": 306.8
  },
  "luminance": 0.15006
}

Semantic roles & 50–950 ramp

primary
#9640D6
secondary
#B4D999
accent
#E84088
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9640D6

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

Preview Lab → · Contrast checker → · Palette generator →

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