#9640CA#9640CA

#9640CA is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.208 H 309.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9640CA
RGBrgb(150, 64, 202)
HSLhsl(277, 57%, 52%)
HSVhsv(277, 68%, 79%)
CMYKcmyk(25.7%, 68.3%, 0%, 20.8%)
CIE-LABlab(44.82, 58.49, -56.63)
CIE-LCHlch(44.82, 81.41, 315.92°)
OKLaboklab(55.01% 0.1334 -0.1602)
OKLCHoklch(55.01% 0.208 309.8)
XYZxyz(25.0696, 14.4156, 57.3275)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640CA #74CA40
analogous
#5140CA #9640CA #CA40B9
triadic
#9640CA #CA9640 #40CA96
tetradic
#9640CA #CA5140 #74CA40 #40B9CA
square
#9640CA #CA5140 #74CA40 #40B9CA
split-complementary
#9640CA #B9CA40 #40CA51
monochromatic
#521F70 #752CA0 #9640CA #B070D7 #CBA0E5

Accessibility & contrast

On white

5.41
#9640CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9640CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640CA
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640CA#FFFFFF#000000##FFFFFF
##9640CA1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#286BC7
Tritanopia (blue-blind)
#8F5E80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9640ca;
/* rgb */ color: rgb(150, 64, 202);
/* oklch */ color: oklch(55.0% 0.208 309.8);
Tailwind
colors: {
  custom: {
    50: '#b97bdb',
    500: '#9640ca',
    950: '#000000',
  },
}
SCSS
$custom: #9640ca;
$custom-light: #b97bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9640ca",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 277.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55006,
    "c": 0.20843,
    "h": 309.8
  },
  "luminance": 0.14415
}

Semantic roles & 50–950 ramp

primary
#9640CA
secondary
#ABD195
accent
#E04881
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9640CA

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

Preview Lab → · Contrast checker → · Palette generator →

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