#642AB7#642AB7

#642AB7 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.204 H 295.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#642AB7
RGBrgb(100, 42, 183)
HSLhsl(265, 63%, 44%)
HSVhsv(265, 77%, 72%)
CMYKcmyk(45.4%, 77%, 0%, 28.2%)
CIE-LABlab(33.53, 54.47, -64.16)
CIE-LCHlch(33.53, 84.16, 310.33°)
OKLaboklab(45.17% 0.0883 -0.1839)
OKLCHoklch(45.17% 0.204 295.7)
XYZxyz(14.6284, 7.7838, 45.5222)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AB7 #7DB72A
analogous
#2A36B7 #642AB7 #AB2AB7
triadic
#642AB7 #B7642A #2AB764
tetradic
#642AB7 #B72A36 #7DB72A #2AB7AB
square
#642AB7 #B72A36 #7DB72A #2AB7AB
split-complementary
#642AB7 #B7AB2A #36B72A
monochromatic
#2E1353 #491F85 #642AB7 #8349D5 #A57BE1

Accessibility & contrast

On white

8.21
#642AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#642AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AB7
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AB7#FFFFFF#000000##FFFFFF
##642AB71.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#4D5170
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642ab7;
/* rgb */ color: rgb(100, 42, 183);
/* oklch */ color: oklch(45.2% 0.204 295.7);
Tailwind
colors: {
  custom: {
    50: '#986ace',
    500: '#642ab7',
    950: '#000000',
  },
}
SCSS
$custom: #642ab7;
$custom-light: #986ace;
$custom-dark: #000000;
JSON
{
  "hex": "#642ab7",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 264.681,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45166,
    "c": 0.20397,
    "h": 295.7
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#642AB7
secondary
#A6C974
accent
#E642A2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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