#9640D5#9640D5

#9640D5 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.219 H 307.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9640D5
RGBrgb(150, 64, 213)
HSLhsl(275, 64%, 54%)
HSVhsv(275, 70%, 84%)
CMYKcmyk(29.6%, 70%, 0%, 16.5%)
CIE-LABlab(45.57, 60.91, -61.75)
CIE-LCHlch(45.57, 86.74, 314.61°)
OKLaboklab(55.78% 0.132 -0.1752)
OKLCHoklch(55.78% 0.219 307)
XYZxyz(26.4188, 14.9552, 64.4328)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D5 #7FD540
analogous
#4C40D5 #9640D5 #D540C9
triadic
#9640D5 #D59640 #40D596
tetradic
#9640D5 #D54C40 #7FD540 #40C9D5
square
#9640D5 #D54C40 #7FD540 #40C9D5
split-complementary
#9640D5 #C9D540 #40D54C
monochromatic
#551C7F #7727B1 #9640D5 #B272E0 #CDA4EB

Accessibility & contrast

On white

5.26
#9640D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9640D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D5#FFFFFF#000000##FFFFFF
##9640D51.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#0E6DD2
Tritanopia (blue-blind)
#8B6286
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9640d5;
/* rgb */ color: rgb(150, 64, 213);
/* oklch */ color: oklch(55.8% 0.219 307.0);
Tailwind
colors: {
  custom: {
    50: '#ba7ce3',
    500: '#9640d5',
    950: '#000000',
  },
}
SCSS
$custom: #9640d5;
$custom-light: #ba7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d5",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 274.631,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55779,
    "c": 0.21939,
    "h": 307
  },
  "luminance": 0.14955
}

Semantic roles & 50–950 ramp

primary
#9640D5
secondary
#B4D899
accent
#E74187
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9640D5

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

Preview Lab → · Contrast checker → · Palette generator →

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