#642EB7#642EB7

#642EB7 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.200 H 295.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#642EB7
RGBrgb(100, 46, 183)
HSLhsl(264, 60%, 45%)
HSVhsv(264, 75%, 72%)
CMYKcmyk(45.4%, 74.9%, 0%, 28.2%)
CIE-LABlab(34.15, 52.68, -63.13)
CIE-LCHlch(34.15, 82.23, 309.84°)
OKLaboklab(45.6% 0.085 -0.1809)
OKLCHoklch(45.6% 0.2 295.2)
XYZxyz(14.7775, 8.0818, 45.5719)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EB7 #81B72E
analogous
#2E3CB7 #642EB7 #A92EB7
triadic
#642EB7 #B7642E #2EB764
tetradic
#642EB7 #B72E3C #81B72E #2EB7A9
square
#642EB7 #B72E3C #81B72E #2EB7A9
split-complementary
#642EB7 #B7A92E #3CB72E
monochromatic
#2F1555 #492286 #642EB7 #834FD3 #A680DF

Accessibility & contrast

On white

8.03
#642EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#642EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EB7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EB7#FFFFFF#000000##FFFFFF
##642EB71.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642eb7;
/* rgb */ color: rgb(100, 46, 183);
/* oklch */ color: oklch(45.6% 0.200 295.2);
Tailwind
colors: {
  custom: {
    50: '#986cce',
    500: '#642eb7',
    950: '#000000',
  },
}
SCSS
$custom: #642eb7;
$custom-light: #986cce;
$custom-dark: #000000;
JSON
{
  "hex": "#642eb7",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 263.65,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45604,
    "c": 0.19986,
    "h": 295.2
  },
  "luminance": 0.08082
}

Semantic roles & 50–950 ramp

primary
#642EB7
secondary
#A9C879
accent
#E345A5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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