#642DC9#642DC9

#642DC9 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.220 H 291.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#642DC9
RGBrgb(100, 45, 201)
HSLhsl(261, 63%, 48%)
HSVhsv(261, 78%, 79%)
CMYKcmyk(50.2%, 77.6%, 0%, 21.2%)
CIE-LABlab(35.60, 57.81, -71.33)
CIE-LCHlch(35.60, 91.82, 309.02°)
OKLaboklab(47.11% 0.0809 -0.2049)
OKLCHoklch(47.11% 0.22 291.5)
XYZxyz(16.7335, 8.8025, 56.0644)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DC9 #92C92D
analogous
#2D44C9 #642DC9 #B22DC9
triadic
#642DC9 #C9642D #2DC964
tetradic
#642DC9 #C92D44 #92C92D #2DC9B2
square
#642DC9 #C92D44 #92C92D #2DC9B2
split-complementary
#642DC9 #C9B22D #44C92D
monochromatic
#321765 #4B2297 #642DC9 #8759DA #AB8BE5

Accessibility & contrast

On white

7.61
#642DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#642DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DC9
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DC9#FFFFFF#000000##FFFFFF
##642DC91.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#0050C6
Tritanopia (blue-blind)
#41597A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #642dc9;
/* rgb */ color: rgb(100, 45, 201);
/* oklch */ color: oklch(47.1% 0.220 291.5);
Tailwind
colors: {
  custom: {
    50: '#9a6ddb',
    500: '#642dc9',
    950: '#000000',
  },
}
SCSS
$custom: #642dc9;
$custom-light: #9a6ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#642dc9",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 261.154,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47108,
    "c": 0.22031,
    "h": 291.5
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#642DC9
secondary
#B4CF83
accent
#E641AC
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #642DC9

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

Preview Lab → · Contrast checker → · Palette generator →

#642DC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva