#642CB6#642CB6

#642CB6 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.201 H 295.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#642CB6
RGBrgb(100, 44, 182)
HSLhsl(264, 61%, 44%)
HSVhsv(264, 76%, 71%)
CMYKcmyk(45.1%, 75.8%, 0%, 28.6%)
CIE-LABlab(33.75, 53.33, -63.20)
CIE-LCHlch(33.75, 82.70, 310.16°)
OKLaboklab(45.29% 0.087 -0.1811)
OKLCHoklch(45.29% 0.201 295.7)
XYZxyz(14.5974, 7.8877, 45.0003)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB6 #7EB62C
analogous
#2C39B6 #642CB6 #A92CB6
triadic
#642CB6 #B6642C #2CB664
tetradic
#642CB6 #B62C39 #7EB62C #2CB6A9
square
#642CB6 #B62C39 #7EB62C #2CB6A9
split-complementary
#642CB6 #B6A92C #39B62C
monochromatic
#2E1453 #492085 #642CB6 #834CD4 #A57DE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642CB6#FFFFFF#000000##FFFFFF
##642CB61.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)
#0050BA
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#4D516F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642cb6;
/* rgb */ color: rgb(100, 44, 182);
/* oklch */ color: oklch(45.3% 0.201 295.7);
Tailwind
colors: {
  custom: {
    50: '#986bcd',
    500: '#642cb6',
    950: '#000000',
  },
}
SCSS
$custom: #642cb6;
$custom-light: #986bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb6",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 264.348,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45293,
    "c": 0.20087,
    "h": 295.7
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#642CB6
secondary
#A7C876
accent
#E444A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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