#9642E1#9642E1

#9642E1 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.229 H 304.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9642E1
RGBrgb(150, 66, 225)
HSLhsl(272, 73%, 57%)
HSVhsv(272, 71%, 88%)
CMYKcmyk(33.3%, 70.7%, 0%, 11.8%)
CIE-LABlab(46.73, 62.74, -66.72)
CIE-LCHlch(46.73, 91.58, 313.24°)
OKLaboklab(56.87% 0.1282 -0.1898)
OKLCHoklch(56.87% 0.229 304)
XYZxyz(28.1134, 15.8168, 72.7914)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642E1 #8DE142
analogous
#4742E1 #9642E1 #E142DD
triadic
#9642E1 #E19642 #42E196
tetradic
#9642E1 #E14742 #8DE142 #42DDE1
square
#9642E1 #E14742 #8DE142 #42DDE1
split-complementary
#9642E1 #DDE142 #42E147
monochromatic
#581792 #781FC6 #9642E1 #B377E9 #D1ACF2

Accessibility & contrast

On white

5.04
#9642E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9642E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642E1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642E1#FFFFFF#000000##FFFFFF
##9642E11.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006FDE
Tritanopia (blue-blind)
#87688D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9642e1;
/* rgb */ color: rgb(150, 66, 225);
/* oklch */ color: oklch(56.9% 0.229 304.0);
Tailwind
colors: {
  custom: {
    50: '#bb7deb',
    500: '#9642e1',
    950: '#000000',
  },
}
SCSS
$custom: #9642e1;
$custom-light: #bb7deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9642e1",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 271.698,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56872,
    "c": 0.22907,
    "h": 304
  },
  "luminance": 0.15817
}

Semantic roles & 50–950 ramp

primary
#9642E1
secondary
#BEE09F
accent
#EF388F
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642E1

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

Preview Lab → · Contrast checker → · Palette generator →

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