#9642D6#9642D6

#9642D6 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.218 H 306.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9642D6
RGBrgb(150, 66, 214)
HSLhsl(274, 64%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(29.9%, 69.2%, 0%, 16.1%)
CIE-LABlab(45.96, 60.25, -61.70)
CIE-LCHlch(45.96, 86.24, 314.32°)
OKLaboklab(56.07% 0.1299 -0.1751)
OKLCHoklch(56.07% 0.218 306.6)
XYZxyz(26.6609, 15.2358, 65.1416)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642D6 #82D642
analogous
#4C42D6 #9642D6 #D642CC
triadic
#9642D6 #D69642 #42D696
tetradic
#9642D6 #D64C42 #82D642 #42CCD6
square
#9642D6 #D64C42 #82D642 #42CCD6
split-complementary
#9642D6 #CCD642 #42D64C
monochromatic
#561C82 #7727B4 #9642D6 #B274E1 #CEA7EC

Accessibility & contrast

On white

5.19
#9642D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9642D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642D6
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642D6#FFFFFF#000000##FFFFFF
##9642D61.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#116DD3
Tritanopia (blue-blind)
#8B6387
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9642d6;
/* rgb */ color: rgb(150, 66, 214);
/* oklch */ color: oklch(56.1% 0.218 306.6);
Tailwind
colors: {
  custom: {
    50: '#ba7de3',
    500: '#9642d6',
    950: '#000000',
  },
}
SCSS
$custom: #9642d6;
$custom-light: #ba7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9642d6",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 274.054,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56073,
    "c": 0.218,
    "h": 306.6
  },
  "luminance": 0.15235
}

Semantic roles & 50–950 ramp

primary
#9642D6
secondary
#B6D99B
accent
#E74089
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642D6

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

Preview Lab → · Contrast checker → · Palette generator →

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