#9642C8#9642C8

#9642C8 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.1% C 0.204 H 310.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9642C8
RGBrgb(150, 66, 200)
HSLhsl(278, 55%, 52%)
HSVhsv(278, 67%, 78%)
CMYKcmyk(25%, 67%, 0%, 21.6%)
CIE-LABlab(45.01, 57.15, -55.17)
CIE-LCHlch(45.01, 79.44, 316.01°)
OKLaboklab(55.1% 0.1314 -0.1559)
OKLCHoklch(55.1% 0.204 310.1)
XYZxyz(24.9492, 14.5511, 56.1267)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642C8 #74C842
analogous
#5342C8 #9642C8 #C842B7
triadic
#9642C8 #C89642 #42C896
tetradic
#9642C8 #C85342 #74C842 #42B7C8
square
#9642C8 #C85342 #74C842 #42B7C8
split-complementary
#9642C8 #B7C842 #42C853
monochromatic
#52206F #752E9F #9642C8 #B071D6 #CBA1E4

Accessibility & contrast

On white

5.37
#9642C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9642C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642C8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642C8#FFFFFF#000000##FFFFFF
##9642C81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#2E6CC5
Tritanopia (blue-blind)
#8F5E80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9642c8;
/* rgb */ color: rgb(150, 66, 200);
/* oklch */ color: oklch(55.1% 0.204 310.1);
Tailwind
colors: {
  custom: {
    50: '#b97cd9',
    500: '#9642c8',
    950: '#000000',
  },
}
SCSS
$custom: #9642c8;
$custom-light: #b97cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9642c8",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 277.612,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.551,
    "c": 0.20389,
    "h": 310.1
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#9642C8
secondary
#ABD096
accent
#DE4A81
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9642C8

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

Preview Lab → · Contrast checker → · Palette generator →

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