#642BA2#642BA2

#642BA2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.180 H 300.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#642BA2
RGBrgb(100, 43, 162)
HSLhsl(269, 58%, 40%)
HSVhsv(269, 73%, 64%)
CMYKcmyk(38.3%, 73.5%, 0%, 36.5%)
CIE-LABlab(31.91, 48.70, -54.23)
CIE-LCHlch(31.91, 72.89, 311.93°)
OKLaboklab(43.48% 0.0926 -0.1547)
OKLCHoklch(43.48% 0.18 300.9)
XYZxyz(12.6394, 7.0456, 34.8695)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BA2 #69A22B
analogous
#2B2EA2 #642BA2 #9F2BA2
triadic
#642BA2 #A2642B #2BA264
tetradic
#642BA2 #A22B2E #69A22B #2BA29F
square
#642BA2 #A22B2E #69A22B #2BA29F
split-complementary
#642BA2 #A29F2B #2EA22B
monochromatic
#281141 #461E72 #642BA2 #823ECC #A16FD9

Accessibility & contrast

On white

8.72
#642BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#642BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BA2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BA2#FFFFFF#000000##FFFFFF
##642BA21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#564964
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642ba2;
/* rgb */ color: rgb(100, 43, 162);
/* oklch */ color: oklch(43.5% 0.180 300.9);
Tailwind
colors: {
  custom: {
    50: '#966abe',
    500: '#642ba2',
    950: '#000000',
  },
}
SCSS
$custom: #642ba2;
$custom-light: #966abe;
$custom-dark: #000000;
JSON
{
  "hex": "#642ba2",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 268.739,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43478,
    "c": 0.18029,
    "h": 300.9
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#642BA2
secondary
#96C069
accent
#E14797
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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