#642AA3#642AA3

#642AA3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.183 H 300.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#642AA3
RGBrgb(100, 42, 163)
HSLhsl(269, 59%, 40%)
HSVhsv(269, 74%, 64%)
CMYKcmyk(38.7%, 74.2%, 0%, 36.1%)
CIE-LABlab(31.83, 49.41, -54.97)
CIE-LCHlch(31.83, 73.91, 311.95°)
OKLaboklab(43.45% 0.0933 -0.1569)
OKLCHoklch(43.45% 0.183 300.7)
XYZxyz(12.6927, 7.0095, 35.3275)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA3 #69A32A
analogous
#2A2DA3 #642AA3 #A02AA3
triadic
#642AA3 #A3642A #2AA364
tetradic
#642AA3 #A32A2D #69A32A #2AA3A0
square
#642AA3 #A32A2D #69A32A #2AA3A0
split-complementary
#642AA3 #A3A02A #2DA32A
monochromatic
#281142 #461D72 #642AA3 #823DCD #A16EDA

Accessibility & contrast

On white

8.74
#642AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#642AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA3
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA3#FFFFFF#000000##FFFFFF
##642AA31.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#564864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642aa3;
/* rgb */ color: rgb(100, 42, 163);
/* oklch */ color: oklch(43.4% 0.183 300.7);
Tailwind
colors: {
  custom: {
    50: '#9669bf',
    500: '#642aa3',
    950: '#000000',
  },
}
SCSS
$custom: #642aa3;
$custom-light: #9669bf;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa3",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 268.76,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.18253,
    "h": 300.7
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#642AA3
secondary
#96C068
accent
#E24697
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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