#9642CD#9642CD

#9642CD is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.4% C 0.209 H 308.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9642CD
RGBrgb(150, 66, 205)
HSLhsl(276, 58%, 53%)
HSVhsv(276, 68%, 80%)
CMYKcmyk(26.8%, 67.8%, 0%, 19.6%)
CIE-LABlab(45.34, 58.25, -57.52)
CIE-LCHlch(45.34, 81.87, 315.36°)
OKLaboklab(55.44% 0.1309 -0.1628)
OKLCHoklch(55.44% 0.209 308.8)
XYZxyz(25.5431, 14.7887, 59.2547)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642CD #79CD42
analogous
#5042CD #9642CD #CD42BE
triadic
#9642CD #CD9642 #42CD96
tetradic
#9642CD #CD5042 #79CD42 #42BECD
square
#9642CD #CD5042 #79CD42 #42BECD
split-complementary
#9642CD #BECD42 #42CD50
monochromatic
#531F76 #762CA6 #9642CD #B172DA #CCA3E7

Accessibility & contrast

On white

5.31
#9642CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9642CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642CD
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642CD#FFFFFF#000000##FFFFFF
##9642CD1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#266CCA
Tritanopia (blue-blind)
#8E6082
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9642cd;
/* rgb */ color: rgb(150, 66, 205);
/* oklch */ color: oklch(55.4% 0.209 308.8);
Tailwind
colors: {
  custom: {
    50: '#b97cdd',
    500: '#9642cd',
    950: '#000000',
  },
}
SCSS
$custom: #9642cd;
$custom-light: #b97cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9642cd",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 276.259,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55442,
    "c": 0.20892,
    "h": 308.8
  },
  "luminance": 0.14788
}

Semantic roles & 50–950 ramp

primary
#9642CD
secondary
#AFD397
accent
#E14684
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9642CD

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

Preview Lab → · Contrast checker → · Palette generator →

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