#642A87#642A87

#642A87 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.152 H 310.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#642A87
RGBrgb(100, 42, 135)
HSLhsl(277, 53%, 35%)
HSVhsv(277, 69%, 53%)
CMYKcmyk(25.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(29.70, 42.59, -41.25)
CIE-LCHlch(29.70, 59.30, 315.92°)
OKLaboklab(41.26% 0.0978 -0.1166)
OKLCHoklch(41.26% 0.152 310)
XYZxyz(10.4558, 6.1147, 23.5464)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A87 #4D872A
analogous
#352A87 #642A87 #872A7C
triadic
#642A87 #87642A #2A8764
tetradic
#642A87 #87352A #4D872A #2A7C87
square
#642A87 #87352A #4D872A #2A7C87
split-complementary
#642A87 #7C872A #2A8735
monochromatic
#1F0D2A #411B58 #642A87 #8739B6 #A35ECD

Accessibility & contrast

On white

9.45
#642A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#642A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A87
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A87#FFFFFF#000000##FFFFFF
##642A871.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#1C4785
Tritanopia (blue-blind)
#5F3D55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642a87;
/* rgb */ color: rgb(100, 42, 135);
/* oklch */ color: oklch(41.3% 0.152 310.0);
Tailwind
colors: {
  custom: {
    50: '#9468aa',
    500: '#642a87',
    950: '#000000',
  },
}
SCSS
$custom: #642a87;
$custom-light: #9468aa;
$custom-dark: #000000;
JSON
{
  "hex": "#642a87",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 277.419,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41261,
    "c": 0.15214,
    "h": 310
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#642A87
secondary
#7BB35A
accent
#DC4C82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642A87

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

Preview Lab → · Contrast checker → · Palette generator →

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