#642BA1#642BA1

#642BA1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.179 H 301.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#642BA1
RGBrgb(100, 43, 161)
HSLhsl(269, 58%, 40%)
HSVhsv(269, 73%, 63%)
CMYKcmyk(37.9%, 73.3%, 0%, 36.9%)
CIE-LABlab(31.83, 48.45, -53.75)
CIE-LCHlch(31.83, 72.37, 312.03°)
OKLaboklab(43.4% 0.0928 -0.1533)
OKLCHoklch(43.4% 0.179 301.2)
XYZxyz(12.5509, 7.0102, 34.4032)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BA1 #68A12B
analogous
#2B2DA1 #642BA1 #9F2BA1
triadic
#642BA1 #A1642B #2BA164
tetradic
#642BA1 #A12B2D #68A12B #2BA19F
square
#642BA1 #A12B2D #68A12B #2BA19F
split-complementary
#642BA1 #A19F2B #2DA12B
monochromatic
#281140 #461E71 #642BA1 #823ECB #A16ED8

Accessibility & contrast

On white

8.74
#642BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#642BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BA1
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BA1#FFFFFF#000000##FFFFFF
##642BA11.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#574863
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642ba1;
/* rgb */ color: rgb(100, 43, 161);
/* oklch */ color: oklch(43.4% 0.179 301.2);
Tailwind
colors: {
  custom: {
    50: '#966abe',
    500: '#642ba1',
    950: '#000000',
  },
}
SCSS
$custom: #642ba1;
$custom-light: #966abe;
$custom-dark: #000000;
JSON
{
  "hex": "#642ba1",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 268.983,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.43396,
    "c": 0.1792,
    "h": 301.2
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#642BA1
secondary
#95BF69
accent
#E14797
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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