#9642D7#9642D7

#9642D7 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.219 H 306.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9642D7
RGBrgb(150, 66, 215)
HSLhsl(274, 65%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(30.2%, 69.3%, 0%, 15.7%)
CIE-LABlab(46.02, 60.48, -62.16)
CIE-LCHlch(46.02, 86.73, 314.21°)
OKLaboklab(56.15% 0.1297 -0.1764)
OKLCHoklch(56.15% 0.219 306.3)
XYZxyz(26.7890, 15.2870, 65.8162)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642D7 #83D742
analogous
#4C42D7 #9642D7 #D742CD
triadic
#9642D7 #D79642 #42D796
tetradic
#9642D7 #D74C42 #83D742 #42CDD7
square
#9642D7 #D74C42 #83D742 #42CDD7
split-complementary
#9642D7 #CDD742 #42D74C
monochromatic
#561C83 #7726B5 #9642D7 #B275E2 #CEA7EC

Accessibility & contrast

On white

5.18
#9642D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9642D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642D7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642D7#FFFFFF#000000##FFFFFF
##9642D71.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#0D6DD4
Tritanopia (blue-blind)
#8B6488
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9642d7;
/* rgb */ color: rgb(150, 66, 215);
/* oklch */ color: oklch(56.1% 0.219 306.3);
Tailwind
colors: {
  custom: {
    50: '#ba7de4',
    500: '#9642d7',
    950: '#000000',
  },
}
SCSS
$custom: #9642d7;
$custom-light: #ba7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9642d7",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 273.826,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56145,
    "c": 0.21901,
    "h": 306.3
  },
  "luminance": 0.15287
}

Semantic roles & 50–950 ramp

primary
#9642D7
secondary
#B6DA9B
accent
#E84089
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642D7

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

Preview Lab → · Contrast checker → · Palette generator →

#9642D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva