#642AA9#642AA9

#642AA9 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.189 H 299.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#642AA9
RGBrgb(100, 42, 169)
HSLhsl(267, 60%, 41%)
HSVhsv(267, 75%, 66%)
CMYKcmyk(40.8%, 75.1%, 0%, 33.7%)
CIE-LABlab(32.32, 50.92, -57.77)
CIE-LCHlch(32.32, 77.01, 311.39°)
OKLaboklab(43.95% 0.092 -0.1651)
OKLCHoklch(43.95% 0.189 299.1)
XYZxyz(13.2431, 7.2297, 38.2262)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA9 #6FA92A
analogous
#2A2FA9 #642AA9 #A42AA9
triadic
#642AA9 #A9642A #2AA964
tetradic
#642AA9 #A92A2F #6FA92A #2AA9A4
square
#642AA9 #A92A2F #6FA92A #2AA9A4
split-complementary
#642AA9 #A9A42A #2FA92A
monochromatic
#2A1247 #471E78 #642AA9 #8241D0 #A272DC

Accessibility & contrast

On white

8.59
#642AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642AA9
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA9#FFFFFF#000000##FFFFFF
##642AA91.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642aa9;
/* rgb */ color: rgb(100, 42, 169);
/* oklch */ color: oklch(43.9% 0.189 299.1);
Tailwind
colors: {
  custom: {
    50: '#976ac4',
    500: '#642aa9',
    950: '#000000',
  },
}
SCSS
$custom: #642aa9;
$custom-light: #976ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa9",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 267.402,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43949,
    "c": 0.189,
    "h": 299.1
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#642AA9
secondary
#9BC36C
accent
#E3449B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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