#642EB6#642EB6

#642EB6 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.199 H 295.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#642EB6
RGBrgb(100, 46, 182)
HSLhsl(264, 60%, 45%)
HSVhsv(264, 75%, 71%)
CMYKcmyk(45.1%, 74.7%, 0%, 28.6%)
CIE-LABlab(34.07, 52.42, -62.68)
CIE-LCHlch(34.07, 81.71, 309.91°)
OKLaboklab(45.52% 0.0853 -0.1796)
OKLCHoklch(45.52% 0.199 295.4)
XYZxyz(14.6738, 8.0403, 45.0257)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EB6 #80B62E
analogous
#2E3CB6 #642EB6 #A82EB6
triadic
#642EB6 #B6642E #2EB664
tetradic
#642EB6 #B62E3C #80B62E #2EB6A8
square
#642EB6 #B62E3C #80B62E #2EB6A8
split-complementary
#642EB6 #B6A82E #3CB62E
monochromatic
#2E1554 #492285 #642EB6 #834FD2 #A580DF

Accessibility & contrast

On white

8.05
#642EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#642EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EB6
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EB6#FFFFFF#000000##FFFFFF
##642EB61.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#4D5270
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642eb6;
/* rgb */ color: rgb(100, 46, 182);
/* oklch */ color: oklch(45.5% 0.199 295.4);
Tailwind
colors: {
  custom: {
    50: '#986ccd',
    500: '#642eb6',
    950: '#000000',
  },
}
SCSS
$custom: #642eb6;
$custom-light: #986ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#642eb6",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 263.824,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45517,
    "c": 0.19877,
    "h": 295.4
  },
  "luminance": 0.08041
}

Semantic roles & 50–950 ramp

primary
#642EB6
secondary
#A8C878
accent
#E345A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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