#642CB5#642CB5

#642CB5 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.2% C 0.200 H 295.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#642CB5
RGBrgb(100, 44, 181)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(44.8%, 75.7%, 0%, 29%)
CIE-LABlab(33.66, 53.07, -62.75)
CIE-LCHlch(33.66, 82.19, 310.22°)
OKLaboklab(45.21% 0.0872 -0.1797)
OKLCHoklch(45.21% 0.2 295.9)
XYZxyz(14.4945, 7.8465, 44.4580)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB5 #7DB52C
analogous
#2C38B5 #642CB5 #A92CB5
triadic
#642CB5 #B5642C #2CB564
tetradic
#642CB5 #B52C38 #7DB52C #2CB5A9
square
#642CB5 #B52C38 #7DB52C #2CB5A9
split-complementary
#642CB5 #B5A92C #38B52C
monochromatic
#2E1453 #492084 #642CB5 #834BD3 #A57CDF

Accessibility & contrast

On white

8.17
#642CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#642CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB5
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB5#FFFFFF#000000##FFFFFF
##642CB51.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642cb5;
/* rgb */ color: rgb(100, 44, 181);
/* oklch */ color: oklch(45.2% 0.200 295.9);
Tailwind
colors: {
  custom: {
    50: '#986bcc',
    500: '#642cb5',
    950: '#000000',
  },
}
SCSS
$custom: #642cb5;
$custom-light: #986bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb5",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 264.526,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45205,
    "c": 0.19979,
    "h": 295.9
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#642CB5
secondary
#A6C875
accent
#E444A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #642CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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