#642AA5#642AA5

#642AA5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.185 H 300.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#642AA5
RGBrgb(100, 42, 165)
HSLhsl(268, 59%, 41%)
HSVhsv(268, 75%, 65%)
CMYKcmyk(39.4%, 74.5%, 0%, 35.3%)
CIE-LABlab(31.99, 49.91, -55.91)
CIE-LCHlch(31.99, 74.95, 311.76°)
OKLaboklab(43.61% 0.0929 -0.1596)
OKLCHoklch(43.61% 0.185 300.2)
XYZxyz(12.8733, 7.0817, 36.2787)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA5 #6BA52A
analogous
#2A2DA5 #642AA5 #A12AA5
triadic
#642AA5 #A5642A #2AA564
tetradic
#642AA5 #A52A2D #6BA52A #2AA5A1
square
#642AA5 #A52A2D #6BA52A #2AA5A1
split-complementary
#642AA5 #A5A12A #2DA52A
monochromatic
#291143 #461E74 #642AA5 #823ECE #A26FDA

Accessibility & contrast

On white

8.69
#642AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#642AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA5
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA5#FFFFFF#000000##FFFFFF
##642AA51.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#554965
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642aa5;
/* rgb */ color: rgb(100, 42, 165);
/* oklch */ color: oklch(43.6% 0.185 300.2);
Tailwind
colors: {
  custom: {
    50: '#9669c1',
    500: '#642aa5',
    950: '#000000',
  },
}
SCSS
$custom: #642aa5;
$custom-light: #9669c1;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa5",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 268.293,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43612,
    "c": 0.18468,
    "h": 300.2
  },
  "luminance": 0.07082
}

Semantic roles & 50–950 ramp

primary
#642AA5
secondary
#98C169
accent
#E34598
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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