#642EE2#642EE2

#642EE2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.6% C 0.246 H 287.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#642EE2
RGBrgb(100, 46, 226)
HSLhsl(258, 76%, 53%)
HSVhsv(258, 80%, 89%)
CMYKcmyk(55.8%, 79.6%, 0%, 11.4%)
CIE-LABlab(38.12, 63.92, -81.62)
CIE-LCHlch(38.12, 103.67, 308.07°)
OKLaboklab(49.57% 0.0726 -0.235)
OKLCHoklch(49.57% 0.246 287.2)
XYZxyz(19.9559, 10.1532, 72.8450)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EE2 #ACE22E
analogous
#2E52E2 #642EE2 #BE2EE2
triadic
#642EE2 #E2642E #2EE264
tetradic
#642EE2 #E22E52 #ACE22E #2EE2BE
square
#642EE2 #E22E52 #ACE22E #2EE2BE
split-complementary
#642EE2 #E2BE2E #52E22E
monochromatic
#341283 #4A1AB9 #642EE2 #8C64E9 #B499F1

Accessibility & contrast

On white

6.93
#642EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#642EE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #642EE2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EE2#FFFFFF#000000##FFFFFF
##642EE21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE7
Deuteranopia (green-blind)
#0055DF
Tritanopia (blue-blind)
#296489
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #642ee2;
/* rgb */ color: rgb(100, 46, 226);
/* oklch */ color: oklch(49.6% 0.246 287.2);
Tailwind
colors: {
  custom: {
    50: '#9e6fed',
    500: '#642ee2',
    950: '#000000',
  },
}
SCSS
$custom: #642ee2;
$custom-light: #9e6fed;
$custom-dark: #000000;
JSON
{
  "hex": "#642ee2",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 226
  },
  "hsl": {
    "h": 258,
    "s": 75.63,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49568,
    "c": 0.24594,
    "h": 287.2
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#642EE2
secondary
#C5DD8F
accent
#F236BA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #642EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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