#642BAE#642BAE

#642BAE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.193 H 297.7°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#642BAE
RGBrgb(100, 43, 174)
HSLhsl(266, 60%, 43%)
HSVhsv(266, 75%, 68%)
CMYKcmyk(42.5%, 75.3%, 0%, 31.8%)
CIE-LABlab(32.90, 51.73, -59.82)
CIE-LCHlch(32.90, 79.09, 310.85°)
OKLaboklab(44.49% 0.0899 -0.1711)
OKLCHoklch(44.49% 0.193 297.7)
XYZxyz(13.7574, 7.4928, 40.7576)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BAE #75AE2B
analogous
#2B33AE #642BAE #A62BAE
triadic
#642BAE #AE642B #2BAE64
tetradic
#642BAE #AE2B33 #75AE2B #2BAEA6
square
#642BAE #AE2B33 #75AE2B #2BAEA6
split-complementary
#642BAE #AEA62B #33AE2B
monochromatic
#2C134C #481F7D #642BAE #8245D1 #A376DD

Accessibility & contrast

On white

8.40
#642BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#642BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BAE
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BAE#FFFFFF#000000##FFFFFF
##642BAE1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#514D6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642bae;
/* rgb */ color: rgb(100, 43, 174);
/* oklch */ color: oklch(44.5% 0.193 297.7);
Tailwind
colors: {
  custom: {
    50: '#976ac7',
    500: '#642bae',
    950: '#000000',
  },
}
SCSS
$custom: #642bae;
$custom-light: #976ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#642bae",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 266.107,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.19329,
    "h": 297.7
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#642BAE
secondary
#A0C570
accent
#E4449E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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