#642AA1#642AA1

#642AA1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.180 H 301.3°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#642AA1
RGBrgb(100, 42, 161)
HSLhsl(269, 59%, 40%)
HSVhsv(269, 74%, 63%)
CMYKcmyk(37.9%, 73.9%, 0%, 36.9%)
CIE-LABlab(31.67, 48.91, -54.02)
CIE-LCHlch(31.67, 72.88, 312.16°)
OKLaboklab(43.28% 0.0938 -0.1541)
OKLCHoklch(43.28% 0.18 301.3)
XYZxyz(12.5150, 6.9384, 34.3912)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA1 #67A12A
analogous
#2A2BA1 #642AA1 #A02AA1
triadic
#642AA1 #A1642A #2AA164
tetradic
#642AA1 #A12A2B #67A12A #2AA1A0
square
#642AA1 #A12A2B #67A12A #2AA1A0
split-complementary
#642AA1 #A1A02A #2BA12A
monochromatic
#281140 #461D70 #642AA1 #823CCC #A16DD9

Accessibility & contrast

On white

8.80
#642AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#642AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA1
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA1#FFFFFF#000000##FFFFFF
##642AA11.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#574863
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642aa1;
/* rgb */ color: rgb(100, 42, 161);
/* oklch */ color: oklch(43.3% 0.180 301.3);
Tailwind
colors: {
  custom: {
    50: '#9669be',
    500: '#642aa1',
    950: '#000000',
  },
}
SCSS
$custom: #642aa1;
$custom-light: #9669be;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa1",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 269.244,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.18037,
    "h": 301.3
  },
  "luminance": 0.06938
}

Semantic roles & 50–950 ramp

primary
#642AA1
secondary
#95C067
accent
#E24696
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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