#642EA5#642EA5

#642EA5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.180 H 299.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#642EA5
RGBrgb(100, 46, 165)
HSLhsl(267, 56%, 41%)
HSVhsv(267, 72%, 65%)
CMYKcmyk(39.4%, 72.1%, 0%, 35.3%)
CIE-LABlab(32.66, 48.04, -54.83)
CIE-LCHlch(32.66, 72.89, 311.22°)
OKLaboklab(44.08% 0.089 -0.1565)
OKLCHoklch(44.08% 0.18 299.6)
XYZxyz(13.0224, 7.3798, 36.3284)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA5 #6FA52E
analogous
#2E34A5 #642EA5 #A02EA5
triadic
#642EA5 #A5642E #2EA564
tetradic
#642EA5 #A52E34 #6FA52E #2EA5A0
square
#642EA5 #A52E34 #6FA52E #2EA5A0
split-complementary
#642EA5 #A5A02E #34A52E
monochromatic
#2A1345 #472175 #642EA5 #8245CB #A275D8

Accessibility & contrast

On white

8.48
#642EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#642EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EA5
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA5#FFFFFF#000000##FFFFFF
##642EA51.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#554B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642ea5;
/* rgb */ color: rgb(100, 46, 165);
/* oklch */ color: oklch(44.1% 0.180 299.6);
Tailwind
colors: {
  custom: {
    50: '#966bc1',
    500: '#642ea5',
    950: '#000000',
  },
}
SCSS
$custom: #642ea5;
$custom-light: #966bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea5",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 267.227,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44082,
    "c": 0.18002,
    "h": 299.6
  },
  "luminance": 0.0738
}

Semantic roles & 50–950 ramp

primary
#642EA5
secondary
#9BC06F
accent
#E0489B
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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