#642CD3#642CD3

#642CD3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.232 H 289.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#642CD3
RGBrgb(100, 44, 211)
HSLhsl(260, 65%, 50%)
HSVhsv(260, 79%, 83%)
CMYKcmyk(52.6%, 79.1%, 0%, 17.3%)
CIE-LABlab(36.39, 60.83, -75.84)
CIE-LCHlch(36.39, 97.22, 308.73°)
OKLaboklab(47.94% 0.0786 -0.2181)
OKLCHoklch(47.94% 0.232 289.8)
XYZxyz(17.9107, 9.2130, 62.4499)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CD3 #9BD32C
analogous
#2C47D3 #642CD3 #B82CD3
triadic
#642CD3 #D3642C #2CD364
tetradic
#642CD3 #D32C47 #9BD32C #2CD3B8
square
#642CD3 #D32C47 #9BD32C #2CD3B8
split-complementary
#642CD3 #D3B82C #47D32C
monochromatic
#34176E #4C21A0 #642CD3 #895FDE #AE91E8

Accessibility & contrast

On white

7.39
#642CD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#642CD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CD3
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CD3#FFFFFF#000000##FFFFFF
##642CD31.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D8
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#3A5D80
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #642cd3;
/* rgb */ color: rgb(100, 44, 211);
/* oklch */ color: oklch(47.9% 0.232 289.8);
Tailwind
colors: {
  custom: {
    50: '#9c6de2',
    500: '#642cd3',
    950: '#000000',
  },
}
SCSS
$custom: #642cd3;
$custom-light: #9c6de2;
$custom-dark: #000000;
JSON
{
  "hex": "#642cd3",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 211
  },
  "hsl": {
    "h": 260.12,
    "s": 65.49,
    "l": 50
  },
  "oklch": {
    "l": 0.4794,
    "c": 0.2318,
    "h": 289.8
  },
  "luminance": 0.09214
}

Semantic roles & 50–950 ramp

primary
#642CD3
secondary
#BAD388
accent
#E83FB0
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #642CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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