#642EA1#642EA1

#642EA1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.176 H 300.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#642EA1
RGBrgb(100, 46, 161)
HSLhsl(268, 56%, 41%)
HSVhsv(268, 71%, 63%)
CMYKcmyk(37.9%, 71.4%, 0%, 36.9%)
CIE-LABlab(32.34, 47.02, -52.93)
CIE-LCHlch(32.34, 70.80, 311.62°)
OKLaboklab(43.76% 0.0897 -0.1509)
OKLCHoklch(43.76% 0.176 300.7)
XYZxyz(12.6640, 7.2364, 34.4409)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA1 #6BA12E
analogous
#2E31A1 #642EA1 #9D2EA1
triadic
#642EA1 #A1642E #2EA164
tetradic
#642EA1 #A12E31 #6BA12E #2EA19D
square
#642EA1 #A12E31 #6BA12E #2EA19D
split-complementary
#642EA1 #A19D2E #31A12E
monochromatic
#291342 #462071 #642EA1 #8243C9 #A273D7

Accessibility & contrast

On white

8.58
#642EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642EA1
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA1#FFFFFF#000000##FFFFFF
##642EA11.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#574A64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ea1;
/* rgb */ color: rgb(100, 46, 161);
/* oklch */ color: oklch(43.8% 0.176 300.7);
Tailwind
colors: {
  custom: {
    50: '#956bbe',
    500: '#642ea1',
    950: '#000000',
  },
}
SCSS
$custom: #642ea1;
$custom-light: #956bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea1",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 268.174,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43758,
    "c": 0.17557,
    "h": 300.7
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #642EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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