#9642D5#9642D5

#9642D5 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.217 H 306.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9642D5
RGBrgb(150, 66, 213)
HSLhsl(274, 64%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(29.6%, 69%, 0%, 16.5%)
CIE-LABlab(45.89, 60.03, -61.24)
CIE-LCHlch(45.89, 85.76, 314.43°)
OKLaboklab(56% 0.13 -0.1737)
OKLCHoklch(56% 0.217 306.8)
XYZxyz(26.5336, 15.1849, 64.4710)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642D5 #81D542
analogous
#4D42D5 #9642D5 #D542CA
triadic
#9642D5 #D59642 #42D596
tetradic
#9642D5 #D54D42 #81D542 #42CAD5
square
#9642D5 #D54D42 #81D542 #42CAD5
split-complementary
#9642D5 #CAD542 #42D54D
monochromatic
#551C80 #7728B2 #9642D5 #B274E0 #CEA6EB

Accessibility & contrast

On white

5.20
#9642D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9642D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642D5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642D5#FFFFFF#000000##FFFFFF
##9642D51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#146DD2
Tritanopia (blue-blind)
#8B6387
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9642d5;
/* rgb */ color: rgb(150, 66, 213);
/* oklch */ color: oklch(56.0% 0.217 306.8);
Tailwind
colors: {
  custom: {
    50: '#ba7de3',
    500: '#9642d5',
    950: '#000000',
  },
}
SCSS
$custom: #9642d5;
$custom-light: #ba7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9642d5",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56002,
    "c": 0.21698,
    "h": 306.8
  },
  "luminance": 0.15185
}

Semantic roles & 50–950 ramp

primary
#9642D5
secondary
#B5D89A
accent
#E74188
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9642D5

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

Preview Lab → · Contrast checker → · Palette generator →

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