#642DB5#642DB5

#642DB5 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.199 H 295.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#642DB5
RGBrgb(100, 45, 181)
HSLhsl(264, 60%, 44%)
HSVhsv(264, 75%, 71%)
CMYKcmyk(44.8%, 75.1%, 0%, 29%)
CIE-LABlab(33.82, 52.62, -62.49)
CIE-LCHlch(33.82, 81.70, 310.10°)
OKLaboklab(45.32% 0.0864 -0.179)
OKLCHoklch(45.32% 0.199 295.8)
XYZxyz(14.5322, 7.9219, 44.4705)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB5 #7EB52D
analogous
#2D3AB5 #642DB5 #A82DB5
triadic
#642DB5 #B5642D #2DB564
tetradic
#642DB5 #B52D3A #7EB52D #2DB5A8
square
#642DB5 #B52D3A #7EB52D #2DB5A8
split-complementary
#642DB5 #B5A82D #3AB52D
monochromatic
#2E1553 #492184 #642DB5 #834DD3 #A57EDF

Accessibility & contrast

On white

8.13
#642DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#642DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DB5
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB5#FFFFFF#000000##FFFFFF
##642DB51.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#4E516F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642db5;
/* rgb */ color: rgb(100, 45, 181);
/* oklch */ color: oklch(45.3% 0.199 295.8);
Tailwind
colors: {
  custom: {
    50: '#986ccc',
    500: '#642db5',
    950: '#000000',
  },
}
SCSS
$custom: #642db5;
$custom-light: #986ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#642db5",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 264.265,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45316,
    "c": 0.19874,
    "h": 295.8
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#642DB5
secondary
#A7C776
accent
#E344A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #642DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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