#9642DB#9642DB

#9642DB is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.223 H 305.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9642DB
RGBrgb(150, 66, 219)
HSLhsl(273, 68%, 56%)
HSVhsv(273, 70%, 86%)
CMYKcmyk(31.5%, 69.9%, 0%, 14.1%)
CIE-LABlab(46.30, 61.38, -64.00)
CIE-LCHlch(46.30, 88.67, 313.80°)
OKLaboklab(56.43% 0.1292 -0.1818)
OKLCHoklch(56.43% 0.223 305.4)
XYZxyz(27.3092, 15.4951, 68.5563)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9642DB #87DB42
analogous
#4942DB #9642DB #DB42D4
triadic
#9642DB #DB9642 #42DB96
tetradic
#9642DB #DB4942 #87DB42 #42D4DB
square
#9642DB #DB4942 #87DB42 #42D4DB
split-complementary
#9642DB #D4DB42 #42DB49
monochromatic
#571A89 #7724BC #9642DB #B375E5 #CFA9EF

Accessibility & contrast

On white

5.12
#9642DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9642DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9642DB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9642DB#FFFFFF#000000##FFFFFF
##9642DB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#89658A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9642db;
/* rgb */ color: rgb(150, 66, 219);
/* oklch */ color: oklch(56.4% 0.223 305.4);
Tailwind
colors: {
  custom: {
    50: '#ba7de7',
    500: '#9642db',
    950: '#000000',
  },
}
SCSS
$custom: #9642db;
$custom-light: #ba7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9642db",
  "rgb": {
    "r": 150,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 272.941,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56433,
    "c": 0.22303,
    "h": 305.4
  },
  "luminance": 0.15495
}

Semantic roles & 50–950 ramp

primary
#9642DB
secondary
#B9DC9D
accent
#EB3D8B
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9642DB

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

Preview Lab → · Contrast checker → · Palette generator →

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