#642AAA#642AAA

#642AAA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.190 H 298.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#642AAA
RGBrgb(100, 42, 170)
HSLhsl(267, 60%, 42%)
HSVhsv(267, 75%, 67%)
CMYKcmyk(41.2%, 75.3%, 0%, 33.3%)
CIE-LABlab(32.41, 51.17, -58.24)
CIE-LCHlch(32.41, 77.52, 311.30°)
OKLaboklab(44.03% 0.0917 -0.1665)
OKLCHoklch(44.03% 0.19 298.9)
XYZxyz(13.3373, 7.2673, 38.7225)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AAA #70AA2A
analogous
#2A30AA #642AAA #A42AAA
triadic
#642AAA #AA642A #2AAA64
tetradic
#642AAA #AA2A30 #70AA2A #2AAAA4
square
#642AAA #AA2A30 #70AA2A #2AAAA4
split-complementary
#642AAA #AAA42A #30AA2A
monochromatic
#2A1248 #471E79 #642AAA #8241D0 #A272DC

Accessibility & contrast

On white

8.56
#642AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#642AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AAA
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AAA#FFFFFF#000000##FFFFFF
##642AAA1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#534B68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642aaa;
/* rgb */ color: rgb(100, 42, 170);
/* oklch */ color: oklch(44.0% 0.190 298.9);
Tailwind
colors: {
  custom: {
    50: '#976ac4',
    500: '#642aaa',
    950: '#000000',
  },
}
SCSS
$custom: #642aaa;
$custom-light: #976ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#642aaa",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 267.188,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44034,
    "c": 0.19007,
    "h": 298.9
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

primary
#642AAA
secondary
#9CC36C
accent
#E4449B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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