#642DB4#642DB4

#642DB4 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.198 H 296.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#642DB4
RGBrgb(100, 45, 180)
HSLhsl(264, 60%, 44%)
HSVhsv(264, 75%, 71%)
CMYKcmyk(44.4%, 75%, 0%, 29.4%)
CIE-LABlab(33.73, 52.36, -62.04)
CIE-LCHlch(33.73, 81.18, 310.17°)
OKLaboklab(45.23% 0.0866 -0.1777)
OKLCHoklch(45.23% 0.198 296)
XYZxyz(14.4299, 7.8810, 43.9321)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB4 #7DB42D
analogous
#2D3AB4 #642DB4 #A82DB4
triadic
#642DB4 #B4642D #2DB464
tetradic
#642DB4 #B42D3A #7DB42D #2DB4A8
square
#642DB4 #B42D3A #7DB42D #2DB4A8
split-complementary
#642DB4 #B4A82D #3AB42D
monochromatic
#2E1552 #492183 #642DB4 #834CD2 #A57DDE

Accessibility & contrast

On white

8.15
#642DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642DB4
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB4#FFFFFF#000000##FFFFFF
##642DB41.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#4E516F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642db4;
/* rgb */ color: rgb(100, 45, 180);
/* oklch */ color: oklch(45.2% 0.198 296.0);
Tailwind
colors: {
  custom: {
    50: '#986ccb',
    500: '#642db4',
    950: '#000000',
  },
}
SCSS
$custom: #642db4;
$custom-light: #986ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#642db4",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 264.444,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4523,
    "c": 0.19765,
    "h": 296
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#642DB4
secondary
#A6C776
accent
#E345A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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