#642CA5#642CA5

#642CA5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.182 H 299.9°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#642CA5
RGBrgb(100, 44, 165)
HSLhsl(268, 58%, 41%)
HSVhsv(268, 73%, 65%)
CMYKcmyk(39.4%, 73.3%, 0%, 35.3%)
CIE-LABlab(32.32, 48.99, -55.38)
CIE-LCHlch(32.32, 73.93, 311.50°)
OKLaboklab(43.84% 0.091 -0.1581)
OKLCHoklch(43.84% 0.182 299.9)
XYZxyz(12.9461, 7.2272, 36.3029)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA5 #6DA52C
analogous
#2C30A5 #642CA5 #A02CA5
triadic
#642CA5 #A5642C #2CA564
tetradic
#642CA5 #A52C30 #6DA52C #2CA5A0
square
#642CA5 #A52C30 #6DA52C #2CA5A0
split-complementary
#642CA5 #A5A02C #30A52C
monochromatic
#291244 #471F75 #642CA5 #8242CD #A272D9

Accessibility & contrast

On white

8.59
#642CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#642CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA5
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA5#FFFFFF#000000##FFFFFF
##642CA51.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#554A66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ca5;
/* rgb */ color: rgb(100, 44, 165);
/* oklch */ color: oklch(43.8% 0.182 299.9);
Tailwind
colors: {
  custom: {
    50: '#966ac1',
    500: '#642ca5',
    950: '#000000',
  },
}
SCSS
$custom: #642ca5;
$custom-light: #966ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca5",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 267.769,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43843,
    "c": 0.18239,
    "h": 299.9
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#642CA5
secondary
#9AC16C
accent
#E1479A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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