#9640D8#9640D8

#9640D8 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.222 H 306.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9640D8
RGBrgb(150, 64, 216)
HSLhsl(274, 66%, 55%)
HSVhsv(274, 70%, 85%)
CMYKcmyk(30.6%, 70.4%, 0%, 15.3%)
CIE-LABlab(45.78, 61.58, -63.13)
CIE-LCHlch(45.78, 88.19, 314.29°)
OKLaboklab(56% 0.1316 -0.1793)
OKLCHoklch(56% 0.222 306.3)
XYZxyz(26.8030, 15.1090, 66.4567)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640D8 #82D840
analogous
#4A40D8 #9640D8 #D840CE
triadic
#9640D8 #D89640 #40D896
tetradic
#9640D8 #D84A40 #82D840 #40CED8
square
#9640D8 #D84A40 #82D840 #40CED8
split-complementary
#9640D8 #CED840 #40D84A
monochromatic
#561B83 #7725B6 #9640D8 #B273E2 #CEA6ED

Accessibility & contrast

On white

5.22
#9640D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9640D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640D8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640D8#FFFFFF#000000##FFFFFF
##9640D81.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#006DD5
Tritanopia (blue-blind)
#8B6388
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9640d8;
/* rgb */ color: rgb(150, 64, 216);
/* oklch */ color: oklch(56.0% 0.222 306.3);
Tailwind
colors: {
  custom: {
    50: '#ba7ce5',
    500: '#9640d8',
    950: '#000000',
  },
}
SCSS
$custom: #9640d8;
$custom-light: #ba7ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#9640d8",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 273.947,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55995,
    "c": 0.22238,
    "h": 306.3
  },
  "luminance": 0.15109
}

Semantic roles & 50–950 ramp

primary
#9640D8
secondary
#B6DA9A
accent
#E93F89
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9640D8

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

Preview Lab → · Contrast checker → · Palette generator →

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