#642EA0#642EA0

#642EA0 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.174 H 301.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#642EA0
RGBrgb(100, 46, 160)
HSLhsl(268, 55%, 40%)
HSVhsv(268, 71%, 63%)
CMYKcmyk(37.5%, 71.2%, 0%, 37.3%)
CIE-LABlab(32.26, 46.76, -52.45)
CIE-LCHlch(32.26, 70.27, 311.72°)
OKLaboklab(43.68% 0.0899 -0.1495)
OKLCHoklch(43.68% 0.174 301)
XYZxyz(12.5761, 7.2013, 33.9783)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA0 #6AA02E
analogous
#2E31A0 #642EA0 #9D2EA0
triadic
#642EA0 #A0642E #2EA064
tetradic
#642EA0 #A02E31 #6AA02E #2EA09D
square
#642EA0 #A02E31 #6AA02E #2EA09D
split-complementary
#642EA0 #A09D2E #31A02E
monochromatic
#291341 #462070 #642EA0 #8242C9 #A272D6

Accessibility & contrast

On white

8.61
#642EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#642EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EA0
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA0#FFFFFF#000000##FFFFFF
##642EA01.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#004B9E
Tritanopia (blue-blind)
#574964
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ea0;
/* rgb */ color: rgb(100, 46, 160);
/* oklch */ color: oklch(43.7% 0.174 301.0);
Tailwind
colors: {
  custom: {
    50: '#956bbd',
    500: '#642ea0',
    950: '#000000',
  },
}
SCSS
$custom: #642ea0;
$custom-light: #956bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea0",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 268.421,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43677,
    "c": 0.17445,
    "h": 301
  },
  "luminance": 0.07201
}

Semantic roles & 50–950 ramp

primary
#642EA0
secondary
#97BE6C
accent
#DF4998
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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