#9640C8#9640C8

#9640C8 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.206 H 310.3°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9640C8
RGBrgb(150, 64, 200)
HSLhsl(278, 55%, 52%)
HSVhsv(278, 68%, 78%)
CMYKcmyk(25%, 68%, 0%, 21.6%)
CIE-LABlab(44.69, 58.05, -55.69)
CIE-LCHlch(44.69, 80.44, 316.19°)
OKLaboklab(54.87% 0.1336 -0.1574)
OKLCHoklch(54.87% 0.206 310.3)
XYZxyz(24.8344, 14.3215, 56.0885)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640C8 #72C840
analogous
#5240C8 #9640C8 #C840B6
triadic
#9640C8 #C89640 #40C896
tetradic
#9640C8 #C85240 #72C840 #40B6C8
square
#9640C8 #C85240 #72C840 #40B6C8
split-complementary
#9640C8 #B6C840 #40C852
monochromatic
#51206E #742D9D #9640C8 #B070D6 #CA9FE3

Accessibility & contrast

On white

5.43
#9640C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9640C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640C8
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640C8#FFFFFF#000000##FFFFFF
##9640C81.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#2B6BC5
Tritanopia (blue-blind)
#8F5D7F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9640c8;
/* rgb */ color: rgb(150, 64, 200);
/* oklch */ color: oklch(54.9% 0.206 310.3);
Tailwind
colors: {
  custom: {
    50: '#b97bd9',
    500: '#9640c8',
    950: '#000000',
  },
}
SCSS
$custom: #9640c8;
$custom-light: #b97bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9640c8",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 277.941,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54869,
    "c": 0.20644,
    "h": 310.3
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#9640C8
secondary
#AAD094
accent
#DF4980
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640C8

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

Preview Lab → · Contrast checker → · Palette generator →

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