#642AAE#642AAE

#642AAE is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.194 H 297.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#642AAE
RGBrgb(100, 42, 174)
HSLhsl(266, 61%, 42%)
HSVhsv(266, 76%, 68%)
CMYKcmyk(42.5%, 75.9%, 0%, 31.8%)
CIE-LABlab(32.75, 52.18, -60.08)
CIE-LCHlch(32.75, 79.58, 310.98°)
OKLaboklab(44.38% 0.0907 -0.1719)
OKLCHoklch(44.38% 0.194 297.8)
XYZxyz(13.7215, 7.4210, 40.7457)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AAE #74AE2A
analogous
#2A32AE #642AAE #A62AAE
triadic
#642AAE #AE642A #2AAE64
tetradic
#642AAE #AE2A32 #74AE2A #2AAEA6
square
#642AAE #AE2A32 #74AE2A #2AAEA6
split-complementary
#642AAE #AEA62A #32AE2A
monochromatic
#2B124B #481E7D #642AAE #8243D2 #A375DE

Accessibility & contrast

On white

8.45
#642AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642AAE
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AAE#FFFFFF#000000##FFFFFF
##642AAE1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642aae;
/* rgb */ color: rgb(100, 42, 174);
/* oklch */ color: oklch(44.4% 0.194 297.8);
Tailwind
colors: {
  custom: {
    50: '#976ac7',
    500: '#642aae',
    950: '#000000',
  },
}
SCSS
$custom: #642aae;
$custom-light: #976ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#642aae",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 266.364,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44377,
    "c": 0.19437,
    "h": 297.8
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#642AAE
secondary
#9FC56F
accent
#E4449E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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