#642EB3#642EB3

#642EB3 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.195 H 296.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#642EB3
RGBrgb(100, 46, 179)
HSLhsl(264, 59%, 44%)
HSVhsv(264, 74%, 70%)
CMYKcmyk(44.1%, 74.3%, 0%, 29.8%)
CIE-LABlab(33.81, 51.64, -61.32)
CIE-LCHlch(33.81, 80.17, 310.10°)
OKLaboklab(45.26% 0.086 -0.1756)
OKLCHoklch(45.26% 0.195 296.1)
XYZxyz(14.3670, 7.9177, 43.4104)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EB3 #7DB32E
analogous
#2E3BB3 #642EB3 #A72EB3
triadic
#642EB3 #B3642E #2EB364
tetradic
#642EB3 #B32E3B #7DB32E #2EB3A7
square
#642EB3 #B32E3B #7DB32E #2EB3A7
split-complementary
#642EB3 #B3A72E #3BB32E
monochromatic
#2E1552 #492182 #642EB3 #834DD1 #A57EDE

Accessibility & contrast

On white

8.13
#642EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#642EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EB3
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EB3#FFFFFF#000000##FFFFFF
##642EB31.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#4F516E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642eb3;
/* rgb */ color: rgb(100, 46, 179);
/* oklch */ color: oklch(45.3% 0.195 296.1);
Tailwind
colors: {
  custom: {
    50: '#976ccb',
    500: '#642eb3',
    950: '#000000',
  },
}
SCSS
$custom: #642eb3;
$custom-light: #976ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#642eb3",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 264.361,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45257,
    "c": 0.19548,
    "h": 296.1
  },
  "luminance": 0.07918
}

Semantic roles & 50–950 ramp

primary
#642EB3
secondary
#A6C676
accent
#E246A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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