#642EAA#642EAA

#642EAA is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.186 H 298.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#642EAA
RGBrgb(100, 46, 170)
HSLhsl(266, 57%, 42%)
HSVhsv(266, 73%, 67%)
CMYKcmyk(41.2%, 72.9%, 0%, 33.3%)
CIE-LABlab(33.06, 49.32, -57.17)
CIE-LCHlch(33.06, 75.50, 310.78°)
OKLaboklab(44.5% 0.088 -0.1634)
OKLCHoklch(44.5% 0.186 298.3)
XYZxyz(13.4864, 7.5654, 38.7721)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EAA #74AA2E
analogous
#2E36AA #642EAA #A22EAA
triadic
#642EAA #AA642E #2EAA64
tetradic
#642EAA #AA2E36 #74AA2E #2EAAA2
square
#642EAA #AA2E36 #74AA2E #2EAAA2
split-complementary
#642EAA #AAA22E #36AA2E
monochromatic
#2B144A #48217A #642EAA #8248CD #A378DA

Accessibility & contrast

On white

8.36
#642EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#642EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EAA
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EAA#FFFFFF#000000##FFFFFF
##642EAA1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#534D69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642eaa;
/* rgb */ color: rgb(100, 46, 170);
/* oklch */ color: oklch(44.5% 0.186 298.3);
Tailwind
colors: {
  custom: {
    50: '#966cc4',
    500: '#642eaa',
    950: '#000000',
  },
}
SCSS
$custom: #642eaa;
$custom-light: #966cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#642eaa",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 266.129,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44495,
    "c": 0.18556,
    "h": 298.3
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#642EAA
secondary
#9FC371
accent
#E1479E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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