#9640CC#9640CC

#9640CC is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.210 H 309.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9640CC
RGBrgb(150, 64, 204)
HSLhsl(277, 58%, 53%)
HSVhsv(277, 69%, 80%)
CMYKcmyk(26.5%, 68.6%, 0%, 20%)
CIE-LABlab(44.96, 58.92, -57.57)
CIE-LCHlch(44.96, 82.38, 315.67°)
OKLaboklab(55.14% 0.1332 -0.1629)
OKLCHoklch(55.14% 0.21 309.3)
XYZxyz(25.3080, 14.5109, 58.5827)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640CC #76CC40
analogous
#5040CC #9640CC #CC40BC
triadic
#9640CC #CC9640 #40CC96
tetradic
#9640CC #CC5040 #76CC40 #40BCCC
square
#9640CC #CC5040 #76CC40 #40BCCC
split-complementary
#9640CC #BCCC40 #40CC50
monochromatic
#521F73 #752CA3 #9640CC #B170D9 #CBA1E6

Accessibility & contrast

On white

5.38
#9640CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9640CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640CC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640CC#FFFFFF#000000##FFFFFF
##9640CC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#256CC9
Tritanopia (blue-blind)
#8E5E81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9640cc;
/* rgb */ color: rgb(150, 64, 204);
/* oklch */ color: oklch(55.1% 0.210 309.3);
Tailwind
colors: {
  custom: {
    50: '#b97bdc',
    500: '#9640cc',
    950: '#000000',
  },
}
SCSS
$custom: #9640cc;
$custom-light: #b97bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9640cc",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 276.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55144,
    "c": 0.21043,
    "h": 309.3
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#9640CC
secondary
#ADD295
accent
#E14782
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640CC

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

Preview Lab → · Contrast checker → · Palette generator →

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