#642CAE#642CAE

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

Color values

HEX#642CAE
RGBrgb(100, 44, 174)
HSLhsl(266, 60%, 43%)
HSVhsv(266, 75%, 68%)
CMYKcmyk(42.5%, 74.7%, 0%, 31.8%)
CIE-LABlab(33.06, 51.28, -59.56)
CIE-LCHlch(33.06, 78.59, 310.73°)
OKLaboklab(44.6% 0.089 -0.1704)
OKLCHoklch(44.6% 0.192 297.6)
XYZxyz(13.7942, 7.5664, 40.7699)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CAE #76AE2C
analogous
#2C35AE #642CAE #A52CAE
triadic
#642CAE #AE642C #2CAE64
tetradic
#642CAE #AE2C35 #76AE2C #2CAEA5
square
#642CAE #AE2C35 #76AE2C #2CAEA5
split-complementary
#642CAE #AEA52C #35AE2C
monochromatic
#2C134C #48207D #642CAE #8247D0 #A378DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642CAE#FFFFFF#000000##FFFFFF
##642CAE1.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)
#004EB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#514E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642cae;
/* rgb */ color: rgb(100, 44, 174);
/* oklch */ color: oklch(44.6% 0.192 297.6);
Tailwind
colors: {
  custom: {
    50: '#976bc7',
    500: '#642cae',
    950: '#000000',
  },
}
SCSS
$custom: #642cae;
$custom-light: #976bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#642cae",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 265.846,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.446,
    "c": 0.19221,
    "h": 297.6
  },
  "luminance": 0.07567
}

Semantic roles & 50–950 ramp

primary
#642CAE
secondary
#A1C571
accent
#E3459F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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