#642DB1#642DB1

#642DB1 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.194 H 296.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#642DB1
RGBrgb(100, 45, 177)
HSLhsl(265, 59%, 44%)
HSVhsv(265, 75%, 69%)
CMYKcmyk(43.5%, 74.6%, 0%, 30.6%)
CIE-LABlab(33.48, 51.59, -60.67)
CIE-LCHlch(33.48, 79.64, 310.37°)
OKLaboklab(44.97% 0.0874 -0.1736)
OKLCHoklch(44.97% 0.194 296.7)
XYZxyz(14.1276, 7.7601, 42.3400)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB1 #7AB12D
analogous
#2D38B1 #642DB1 #A62DB1
triadic
#642DB1 #B1642D #2DB164
tetradic
#642DB1 #B12D38 #7AB12D #2DB1A6
square
#642DB1 #B12D38 #7AB12D #2DB1A6
split-complementary
#642DB1 #B1A62D #38B12D
monochromatic
#2D144F #482180 #642DB1 #824AD1 #A47BDD

Accessibility & contrast

On white

8.23
#642DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#642DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DB1
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB1#FFFFFF#000000##FFFFFF
##642DB11.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#50506D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642db1;
/* rgb */ color: rgb(100, 45, 177);
/* oklch */ color: oklch(45.0% 0.194 296.7);
Tailwind
colors: {
  custom: {
    50: '#976bc9',
    500: '#642db1',
    950: '#000000',
  },
}
SCSS
$custom: #642db1;
$custom-light: #976bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#642db1",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 265,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44971,
    "c": 0.19438,
    "h": 296.7
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#642DB1
secondary
#A4C674
accent
#E345A1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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