#642EA6#642EA6

#642EA6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.181 H 299.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#642EA6
RGBrgb(100, 46, 166)
HSLhsl(267, 57%, 42%)
HSVhsv(267, 72%, 65%)
CMYKcmyk(39.8%, 72.3%, 0%, 34.9%)
CIE-LABlab(32.74, 48.29, -55.30)
CIE-LCHlch(32.74, 73.42, 311.13°)
OKLaboklab(44.16% 0.0888 -0.1579)
OKLCHoklch(44.16% 0.181 299.4)
XYZxyz(13.1137, 7.4163, 36.8096)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA6 #70A62E
analogous
#2E34A6 #642EA6 #A02EA6
triadic
#642EA6 #A6642E #2EA664
tetradic
#642EA6 #A62E34 #70A62E #2EA6A0
square
#642EA6 #A62E34 #70A62E #2EA6A0
split-complementary
#642EA6 #A6A02E #34A62E
monochromatic
#2A1346 #472176 #642EA6 #8246CC #A276D9

Accessibility & contrast

On white

8.46
#642EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#642EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EA6
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA6#FFFFFF#000000##FFFFFF
##642EA61.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#544C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642ea6;
/* rgb */ color: rgb(100, 46, 166);
/* oklch */ color: oklch(44.2% 0.181 299.4);
Tailwind
colors: {
  custom: {
    50: '#966cc1',
    500: '#642ea6',
    950: '#000000',
  },
}
SCSS
$custom: #642ea6;
$custom-light: #966cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea6",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 267,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44164,
    "c": 0.18113,
    "h": 299.4
  },
  "luminance": 0.07416
}

Semantic roles & 50–950 ramp

primary
#642EA6
secondary
#9CC16F
accent
#E0489B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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