#642EB5#642EB5

#642EB5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.198 H 295.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#642EB5
RGBrgb(100, 46, 181)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 75%, 71%)
CMYKcmyk(44.8%, 74.6%, 0%, 29%)
CIE-LABlab(33.98, 52.16, -62.23)
CIE-LCHlch(33.98, 81.20, 309.97°)
OKLaboklab(45.43% 0.0855 -0.1782)
OKLCHoklch(45.43% 0.198 295.6)
XYZxyz(14.5708, 7.9992, 44.4834)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EB5 #7FB52E
analogous
#2E3CB5 #642EB5 #A82EB5
triadic
#642EB5 #B5642E #2EB564
tetradic
#642EB5 #B52E3C #7FB52E #2EB5A8
square
#642EB5 #B52E3C #7FB52E #2EB5A8
split-complementary
#642EB5 #B5A82E #3CB52E
monochromatic
#2E1553 #492284 #642EB5 #834ED2 #A57FDE

Accessibility & contrast

On white

8.08
#642EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#642EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EB5
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EB5#FFFFFF#000000##FFFFFF
##642EB51.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#4E526F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642eb5;
/* rgb */ color: rgb(100, 46, 181);
/* oklch */ color: oklch(45.4% 0.198 295.6);
Tailwind
colors: {
  custom: {
    50: '#986ccc',
    500: '#642eb5',
    950: '#000000',
  },
}
SCSS
$custom: #642eb5;
$custom-light: #986ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#642eb5",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 264,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.19768,
    "h": 295.6
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#642EB5
secondary
#A7C778
accent
#E345A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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