#642AB4#642AB4

#642AB4 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.201 H 296.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#642AB4
RGBrgb(100, 42, 180)
HSLhsl(265, 62%, 44%)
HSVhsv(265, 77%, 71%)
CMYKcmyk(44.4%, 76.7%, 0%, 29.4%)
CIE-LABlab(33.26, 53.70, -62.81)
CIE-LCHlch(33.26, 82.64, 310.53°)
OKLaboklab(44.9% 0.0892 -0.1799)
OKLCHoklch(44.9% 0.201 296.4)
XYZxyz(14.3195, 7.6602, 43.8953)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AB4 #7AB42A
analogous
#2A35B4 #642AB4 #A92AB4
triadic
#642AB4 #B4642A #2AB464
tetradic
#642AB4 #B42A35 #7AB42A #2AB4A9
square
#642AB4 #B42A35 #7AB42A #2AB4A9
split-complementary
#642AB4 #B4A92A #35B42A
monochromatic
#2D1351 #481E82 #642AB4 #8247D4 #A479E0

Accessibility & contrast

On white

8.29
#642AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#642AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AB4
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AB4#FFFFFF#000000##FFFFFF
##642AB41.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#4E4F6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642ab4;
/* rgb */ color: rgb(100, 42, 180);
/* oklch */ color: oklch(44.9% 0.201 296.4);
Tailwind
colors: {
  custom: {
    50: '#986acc',
    500: '#642ab4',
    950: '#000000',
  },
}
SCSS
$custom: #642ab4;
$custom-light: #986acc;
$custom-dark: #000000;
JSON
{
  "hex": "#642ab4",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 265.217,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.449,
    "c": 0.20077,
    "h": 296.4
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

primary
#642AB4
secondary
#A4C872
accent
#E543A1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #642AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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