#642DCC#642DCC

#642DCC is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.224 H 291.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#642DCC
RGBrgb(100, 45, 204)
HSLhsl(261, 64%, 49%)
HSVhsv(261, 78%, 80%)
CMYKcmyk(51%, 77.9%, 0%, 20%)
CIE-LABlab(35.88, 58.60, -72.63)
CIE-LCHlch(35.88, 93.32, 308.90°)
OKLaboklab(47.39% 0.08 -0.2087)
OKLCHoklch(47.39% 0.224 291)
XYZxyz(17.0899, 8.9450, 57.9411)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DCC #95CC2D
analogous
#2D46CC #642DCC #B42DCC
triadic
#642DCC #CC642D #2DCC64
tetradic
#642DCC #CC2D46 #95CC2D #2DCCB4
square
#642DCC #CC2D46 #95CC2D #2DCCB4
split-complementary
#642DCC #CCB42D #46CC2D
monochromatic
#331768 #4B229A #642DCC #875BDB #AC8DE6

Accessibility & contrast

On white

7.53
#642DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#642DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DCC
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DCC#FFFFFF#000000##FFFFFF
##642DCC1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#3F5B7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #642dcc;
/* rgb */ color: rgb(100, 45, 204);
/* oklch */ color: oklch(47.4% 0.224 291.0);
Tailwind
colors: {
  custom: {
    50: '#9b6ddd',
    500: '#642dcc',
    950: '#000000',
  },
}
SCSS
$custom: #642dcc;
$custom-light: #9b6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#642dcc",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 260.755,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.22351,
    "h": 291
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

primary
#642DCC
secondary
#B6D085
accent
#E741AD
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #642DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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