#9642E4#9642E4

#9642E4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.232 H 303.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9642E4
RGBrgb(150, 66, 228)
HSLhsl(271, 75%, 58%)
HSVhsv(271, 71%, 89%)
CMYKcmyk(34.2%, 71.1%, 0%, 10.6%)
CIE-LABlab(46.95, 63.42, -68.07)
CIE-LCHlch(46.95, 93.04, 312.98°)
OKLaboklab(57.09% 0.1277 -0.1938)
OKLCHoklch(57.09% 0.232 303.4)
XYZxyz(28.5262, 15.9819, 74.9657)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642E4 #90E442
analogous
#4542E4 #9642E4 #E442E1
triadic
#9642E4 #E49642 #42E496
tetradic
#9642E4 #E44542 #90E442 #42E1E4
square
#9642E4 #E44542 #90E442 #42E1E4
split-complementary
#9642E4 #E1E442 #42E445
monochromatic
#581596 #781DCC #9642E4 #B478EC #D1ADF3

Accessibility & contrast

On white

5.00
#9642E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9642E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642E4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642E4#FFFFFF#000000##FFFFFF
##9642E41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#006FE1
Tritanopia (blue-blind)
#86698F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9642e4;
/* rgb */ color: rgb(150, 66, 228);
/* oklch */ color: oklch(57.1% 0.232 303.4);
Tailwind
colors: {
  custom: {
    50: '#bb7ded',
    500: '#9642e4',
    950: '#000000',
  },
}
SCSS
$custom: #9642e4;
$custom-light: #bb7ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9642e4",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 271.111,
    "s": 75,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57094,
    "c": 0.23209,
    "h": 303.4
  },
  "luminance": 0.15982
}

Semantic roles & 50–950 ramp

primary
#9642E4
secondary
#C0E2A0
accent
#F23690
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642E4

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

Preview Lab → · Contrast checker → · Palette generator →

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