#642EB4#642EB4

#642EB4 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.197 H 295.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#642EB4
RGBrgb(100, 46, 180)
HSLhsl(264, 59%, 44%)
HSVhsv(264, 74%, 71%)
CMYKcmyk(44.4%, 74.4%, 0%, 29.4%)
CIE-LABlab(33.90, 51.90, -61.77)
CIE-LCHlch(33.90, 80.68, 310.04°)
OKLaboklab(45.34% 0.0857 -0.1769)
OKLCHoklch(45.34% 0.197 295.9)
XYZxyz(14.4685, 7.9583, 43.9450)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EB4 #7EB42E
analogous
#2E3BB4 #642EB4 #A72EB4
triadic
#642EB4 #B4642E #2EB464
tetradic
#642EB4 #B42E3B #7EB42E #2EB4A7
square
#642EB4 #B42E3B #7EB42E #2EB4A7
split-complementary
#642EB4 #B4A72E #3BB42E
monochromatic
#2E1553 #492283 #642EB4 #834ED2 #A57EDE

Accessibility & contrast

On white

8.10
#642EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#642EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EB4
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EB4#FFFFFF#000000##FFFFFF
##642EB41.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#4E516F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642eb4;
/* rgb */ color: rgb(100, 46, 180);
/* oklch */ color: oklch(45.3% 0.197 295.9);
Tailwind
colors: {
  custom: {
    50: '#986ccb',
    500: '#642eb4',
    950: '#000000',
  },
}
SCSS
$custom: #642eb4;
$custom-light: #986ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#642eb4",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 264.179,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45344,
    "c": 0.19657,
    "h": 295.9
  },
  "luminance": 0.07959
}

Semantic roles & 50–950 ramp

primary
#642EB4
secondary
#A7C777
accent
#E245A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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