#9640DB#9640DB

#9640DB is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.225 H 305.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9640DB
RGBrgb(150, 64, 219)
HSLhsl(273, 68%, 55%)
HSVhsv(273, 71%, 86%)
CMYKcmyk(31.5%, 70.8%, 0%, 14.1%)
CIE-LABlab(46.00, 62.25, -64.50)
CIE-LCHlch(46.00, 89.64, 313.98°)
OKLaboklab(56.21% 0.1311 -0.1833)
OKLCHoklch(56.21% 0.225 305.6)
XYZxyz(27.1944, 15.2655, 68.5180)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640DB #85DB40
analogous
#4840DB #9640DB #DB40D3
triadic
#9640DB #DB9640 #40DB96
tetradic
#9640DB #DB4840 #85DB40 #40D3DB
square
#9640DB #DB4840 #85DB40 #40D3DB
split-complementary
#9640DB #D3DB40 #40DB48
monochromatic
#561987 #7723BB #9640DB #B273E5 #CFA7EE

Accessibility & contrast

On white

5.18
#9640DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9640DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640DB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640DB#FFFFFF#000000##FFFFFF
##9640DB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#8A648A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9640db;
/* rgb */ color: rgb(150, 64, 219);
/* oklch */ color: oklch(56.2% 0.225 305.6);
Tailwind
colors: {
  custom: {
    50: '#ba7ce7',
    500: '#9640db',
    950: '#000000',
  },
}
SCSS
$custom: #9640db;
$custom-light: #ba7ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9640db",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 273.29,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56213,
    "c": 0.22537,
    "h": 305.6
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#9640DB
secondary
#B8DC9B
accent
#EB3D8A
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9640DB

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

Preview Lab → · Contrast checker → · Palette generator →

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