#9642D2#9642D2

#9642D2 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.214 H 307.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9642D2
RGBrgb(150, 66, 210)
HSLhsl(275, 62%, 54%)
HSVhsv(275, 69%, 82%)
CMYKcmyk(28.6%, 68.6%, 0%, 17.6%)
CIE-LABlab(45.68, 59.36, -59.85)
CIE-LCHlch(45.68, 84.30, 314.76°)
OKLaboklab(55.79% 0.1304 -0.1696)
OKLCHoklch(55.79% 0.214 307.5)
XYZxyz(26.1563, 15.0340, 62.4842)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642D2 #7ED242
analogous
#4E42D2 #9642D2 #D242C6
triadic
#9642D2 #D29642 #42D296
tetradic
#9642D2 #D24E42 #7ED242 #42C6D2
square
#9642D2 #D24E42 #7ED242 #42C6D2
split-complementary
#9642D2 #C6D242 #42D24E
monochromatic
#551E7C #7629AD #9642D2 #B173DE #CDA5EA

Accessibility & contrast

On white

5.24
#9642D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9642D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642D2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642D2#FFFFFF#000000##FFFFFF
##9642D21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#1D6DCF
Tritanopia (blue-blind)
#8C6285
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9642d2;
/* rgb */ color: rgb(150, 66, 210);
/* oklch */ color: oklch(55.8% 0.214 307.5);
Tailwind
colors: {
  custom: {
    50: '#ba7de1',
    500: '#9642d2',
    950: '#000000',
  },
}
SCSS
$custom: #9642d2;
$custom-light: #ba7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9642d2",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 275,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5579,
    "c": 0.21396,
    "h": 307.5
  },
  "luminance": 0.15034
}

Semantic roles & 50–950 ramp

primary
#9642D2
secondary
#B3D799
accent
#E54386
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9642D2

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

Preview Lab → · Contrast checker → · Palette generator →

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