#642CB1#642CB1

#642CB1 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.195 H 296.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#642CB1
RGBrgb(100, 44, 177)
HSLhsl(265, 60%, 43%)
HSVhsv(265, 75%, 69%)
CMYKcmyk(43.5%, 75.1%, 0%, 30.6%)
CIE-LABlab(33.32, 52.05, -60.94)
CIE-LCHlch(33.32, 80.14, 310.50°)
OKLaboklab(44.86% 0.0882 -0.1744)
OKLCHoklch(44.86% 0.195 296.8)
XYZxyz(14.0899, 7.6847, 42.3274)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB1 #79B12C
analogous
#2C36B1 #642CB1 #A62CB1
triadic
#642CB1 #B1642C #2CB164
tetradic
#642CB1 #B12C36 #79B12C #2CB1A6
square
#642CB1 #B12C36 #79B12C #2CB1A6
split-complementary
#642CB1 #B1A62C #36B12C
monochromatic
#2D144F #482080 #642CB1 #8249D2 #A47ADE

Accessibility & contrast

On white

8.28
#642CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#642CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB1
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB1#FFFFFF#000000##FFFFFF
##642CB11.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#504F6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642cb1;
/* rgb */ color: rgb(100, 44, 177);
/* oklch */ color: oklch(44.9% 0.195 296.8);
Tailwind
colors: {
  custom: {
    50: '#976bc9',
    500: '#642cb1',
    950: '#000000',
  },
}
SCSS
$custom: #642cb1;
$custom-light: #976bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb1",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 265.263,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44857,
    "c": 0.19547,
    "h": 296.8
  },
  "luminance": 0.07685
}

Semantic roles & 50–950 ramp

primary
#642CB1
secondary
#A3C673
accent
#E344A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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