#9640D2#9640D2

#9640D2 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.6% C 0.216 H 307.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9640D2
RGBrgb(150, 64, 210)
HSLhsl(275, 62%, 54%)
HSVhsv(275, 70%, 82%)
CMYKcmyk(28.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(45.37, 60.24, -60.37)
CIE-LCHlch(45.37, 85.28, 314.94°)
OKLaboklab(55.57% 0.1325 -0.1711)
OKLCHoklch(55.57% 0.216 307.7)
XYZxyz(26.0415, 14.8043, 62.4459)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D2 #7CD240
analogous
#4D40D2 #9640D2 #D240C5
triadic
#9640D2 #D29640 #40D296
tetradic
#9640D2 #D24D40 #7CD240 #40C5D2
square
#9640D2 #D24D40 #7CD240 #40C5D2
split-complementary
#9640D2 #C5D240 #40D24D
monochromatic
#541D7B #7629AC #9640D2 #B172DE #CCA3E9

Accessibility & contrast

On white

5.30
#9640D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9640D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D2#FFFFFF#000000##FFFFFF
##9640D21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#186CCF
Tritanopia (blue-blind)
#8C6185
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9640d2;
/* rgb */ color: rgb(150, 64, 210);
/* oklch */ color: oklch(55.6% 0.216 307.7);
Tailwind
colors: {
  custom: {
    50: '#ba7ce1',
    500: '#9640d2',
    950: '#000000',
  },
}
SCSS
$custom: #9640d2;
$custom-light: #ba7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d2",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 275.342,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55565,
    "c": 0.21641,
    "h": 307.7
  },
  "luminance": 0.14804
}

Semantic roles & 50–950 ramp

primary
#9640D2
secondary
#B1D698
accent
#E54385
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640D2

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

Preview Lab → · Contrast checker → · Palette generator →

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