#9642D8#9642D8

#9642D8 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.220 H 306.1°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9642D8
RGBrgb(150, 66, 216)
HSLhsl(274, 66%, 55%)
HSVhsv(274, 69%, 85%)
CMYKcmyk(30.6%, 69.4%, 0%, 15.3%)
CIE-LABlab(46.09, 60.70, -62.62)
CIE-LCHlch(46.09, 87.22, 314.11°)
OKLaboklab(56.22% 0.1296 -0.1778)
OKLCHoklch(56.22% 0.22 306.1)
XYZxyz(26.9179, 15.3386, 66.4950)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642D8 #84D842
analogous
#4B42D8 #9642D8 #D842CF
triadic
#9642D8 #D89642 #42D896
tetradic
#9642D8 #D84B42 #84D842 #42CFD8
square
#9642D8 #D84B42 #84D842 #42CFD8
split-complementary
#9642D8 #CFD842 #42D84B
monochromatic
#561B84 #7726B7 #9642D8 #B275E2 #CEA7ED

Accessibility & contrast

On white

5.16
#9642D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9642D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642D8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642D8#FFFFFF#000000##FFFFFF
##9642D81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#086ED5
Tritanopia (blue-blind)
#8A6488
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9642d8;
/* rgb */ color: rgb(150, 66, 216);
/* oklch */ color: oklch(56.2% 0.220 306.1);
Tailwind
colors: {
  custom: {
    50: '#ba7de5',
    500: '#9642d8',
    950: '#000000',
  },
}
SCSS
$custom: #9642d8;
$custom-light: #ba7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#9642d8",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 273.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56216,
    "c": 0.22001,
    "h": 306.1
  },
  "luminance": 0.15338
}

Semantic roles & 50–950 ramp

primary
#9642D8
secondary
#B7DA9C
accent
#E93F8A
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642D8

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

Preview Lab → · Contrast checker → · Palette generator →

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