#642DB6#642DB6

#642DB6 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.200 H 295.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#642DB6
RGBrgb(100, 45, 182)
HSLhsl(264, 60%, 45%)
HSVhsv(264, 75%, 71%)
CMYKcmyk(45.1%, 75.3%, 0%, 28.6%)
CIE-LABlab(33.91, 52.88, -62.94)
CIE-LCHlch(33.91, 82.21, 310.03°)
OKLaboklab(45.4% 0.0861 -0.1803)
OKLCHoklch(45.4% 0.2 295.5)
XYZxyz(14.6351, 7.9631, 45.0128)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB6 #7FB62D
analogous
#2D3AB6 #642DB6 #A92DB6
triadic
#642DB6 #B6642D #2DB664
tetradic
#642DB6 #B62D3A #7FB62D #2DB6A9
square
#642DB6 #B62D3A #7FB62D #2DB6A9
split-complementary
#642DB6 #B6A92D #3AB62D
monochromatic
#2E1554 #492185 #642DB6 #834DD3 #A57EDF

Accessibility & contrast

On white

8.10
#642DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#642DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DB6
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB6#FFFFFF#000000##FFFFFF
##642DB61.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#4D5270
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642db6;
/* rgb */ color: rgb(100, 45, 182);
/* oklch */ color: oklch(45.4% 0.200 295.5);
Tailwind
colors: {
  custom: {
    50: '#986ccd',
    500: '#642db6',
    950: '#000000',
  },
}
SCSS
$custom: #642db6;
$custom-light: #986ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#642db6",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 264.088,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45404,
    "c": 0.19983,
    "h": 295.5
  },
  "luminance": 0.07963
}

Semantic roles & 50–950 ramp

primary
#642DB6
secondary
#A7C877
accent
#E344A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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