#642EA2#642EA2

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

Color values

HEX#642EA2
RGBrgb(100, 46, 162)
HSLhsl(268, 56%, 41%)
HSVhsv(268, 72%, 64%)
CMYKcmyk(38.3%, 71.6%, 0%, 36.5%)
CIE-LABlab(32.42, 47.27, -53.40)
CIE-LCHlch(32.42, 71.32, 311.51°)
OKLaboklab(43.84% 0.0896 -0.1523)
OKLCHoklch(43.84% 0.177 300.5)
XYZxyz(12.7525, 7.2718, 34.9072)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA2 #6CA22E
analogous
#2E32A2 #642EA2 #9E2EA2
triadic
#642EA2 #A2642E #2EA264
tetradic
#642EA2 #A22E32 #6CA22E #2EA29E
square
#642EA2 #A22E32 #6CA22E #2EA29E
split-complementary
#642EA2 #A29E2E #32A22E
monochromatic
#291343 #472072 #642EA2 #8243CA #A273D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642EA2#FFFFFF#000000##FFFFFF
##642EA21.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)
#004CA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#564A65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ea2;
/* rgb */ color: rgb(100, 46, 162);
/* oklch */ color: oklch(43.8% 0.177 300.5);
Tailwind
colors: {
  custom: {
    50: '#966bbe',
    500: '#642ea2',
    950: '#000000',
  },
}
SCSS
$custom: #642ea2;
$custom-light: #966bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea2",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 267.931,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43838,
    "c": 0.17668,
    "h": 300.5
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#642EA2
secondary
#99BF6D
accent
#DF4999
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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