#9640D3#9640D3

#9640D3 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.217 H 307.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9640D3
RGBrgb(150, 64, 211)
HSLhsl(275, 63%, 54%)
HSVhsv(275, 70%, 83%)
CMYKcmyk(28.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(45.43, 60.46, -60.83)
CIE-LCHlch(45.43, 85.77, 314.83°)
OKLaboklab(55.64% 0.1323 -0.1725)
OKLCHoklch(55.64% 0.217 307.5)
XYZxyz(26.1665, 14.8543, 63.1041)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D3 #7DD340
analogous
#4D40D3 #9640D3 #D340C7
triadic
#9640D3 #D39640 #40D396
tetradic
#9640D3 #D34D40 #7DD340 #40C7D3
square
#9640D3 #D34D40 #7DD340 #40C7D3
split-complementary
#9640D3 #C7D340 #40D34D
monochromatic
#541D7C #7628AE #9640D3 #B172DE #CDA3EA

Accessibility & contrast

On white

5.29
#9640D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9640D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D3
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D3#FFFFFF#000000##FFFFFF
##9640D31.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#156CD0
Tritanopia (blue-blind)
#8C6185
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9640d3;
/* rgb */ color: rgb(150, 64, 211);
/* oklch */ color: oklch(55.6% 0.217 307.5);
Tailwind
colors: {
  custom: {
    50: '#ba7ce1',
    500: '#9640d3',
    950: '#000000',
  },
}
SCSS
$custom: #9640d3;
$custom-light: #ba7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d3",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 275.102,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55636,
    "c": 0.2174,
    "h": 307.5
  },
  "luminance": 0.14854
}

Semantic roles & 50–950 ramp

primary
#9640D3
secondary
#B2D798
accent
#E64286
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640D3

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

Preview Lab → · Contrast checker → · Palette generator →

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