#9642DF#9642DF

#9642DF is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.227 H 304.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9642DF
RGBrgb(150, 66, 223)
HSLhsl(272, 71%, 57%)
HSVhsv(272, 70%, 87%)
CMYKcmyk(32.7%, 70.4%, 0%, 12.5%)
CIE-LABlab(46.59, 62.28, -65.81)
CIE-LCHlch(46.59, 90.61, 313.42°)
OKLaboklab(56.72% 0.1286 -0.1872)
OKLCHoklch(56.72% 0.227 304.5)
XYZxyz(27.8422, 15.7083, 71.3629)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642DF #8BDF42
analogous
#4842DF #9642DF #DF42DA
triadic
#9642DF #DF9642 #42DF96
tetradic
#9642DF #DF4842 #8BDF42 #42DADF
square
#9642DF #DF4842 #8BDF42 #42DADF
split-complementary
#9642DF #DADF42 #42DF48
monochromatic
#57188E #7821C3 #9642DF #B376E8 #D0ABF1

Accessibility & contrast

On white

5.07
#9642DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9642DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642DF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642DF#FFFFFF#000000##FFFFFF
##9642DF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#88678C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9642df;
/* rgb */ color: rgb(150, 66, 223);
/* oklch */ color: oklch(56.7% 0.227 304.5);
Tailwind
colors: {
  custom: {
    50: '#ba7dea',
    500: '#9642df',
    950: '#000000',
  },
}
SCSS
$custom: #9642df;
$custom-light: #ba7dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9642df",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 272.102,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.22706,
    "h": 304.5
  },
  "luminance": 0.15708
}

Semantic roles & 50–950 ramp

primary
#9642DF
secondary
#BCDF9E
accent
#EE3A8E
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642DF

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

Preview Lab → · Contrast checker → · Palette generator →

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