#9642DC#9642DC

#9642DC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.224 H 305.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9642DC
RGBrgb(150, 66, 220)
HSLhsl(273, 69%, 56%)
HSVhsv(273, 70%, 86%)
CMYKcmyk(31.8%, 70%, 0%, 13.7%)
CIE-LABlab(46.38, 61.60, -64.45)
CIE-LCHlch(46.38, 89.16, 313.71°)
OKLaboklab(56.51% 0.129 -0.1832)
OKLCHoklch(56.51% 0.224 305.2)
XYZxyz(27.4413, 15.5479, 69.2517)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642DC #88DC42
analogous
#4942DC #9642DC #DC42D5
triadic
#9642DC #DC9642 #42DC96
tetradic
#9642DC #DC4942 #88DC42 #42D5DC
square
#9642DC #DC4942 #88DC42 #42D5DC
split-complementary
#9642DC #D5DC42 #42DC49
monochromatic
#571A8A #7723BE #9642DC #B376E6 #CFA9EF

Accessibility & contrast

On white

5.11
#9642DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9642DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642DC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642DC#FFFFFF#000000##FFFFFF
##9642DC1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#89668B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9642dc;
/* rgb */ color: rgb(150, 66, 220);
/* oklch */ color: oklch(56.5% 0.224 305.2);
Tailwind
colors: {
  custom: {
    50: '#ba7de8',
    500: '#9642dc',
    950: '#000000',
  },
}
SCSS
$custom: #9642dc;
$custom-light: #ba7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9642dc",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 272.727,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56505,
    "c": 0.22404,
    "h": 305.2
  },
  "luminance": 0.15548
}

Semantic roles & 50–950 ramp

primary
#9642DC
secondary
#BADD9D
accent
#EC3C8C
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642DC

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

Preview Lab → · Contrast checker → · Palette generator →

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