#642A86#642A86

#642A86 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.151 H 310.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#642A86
RGBrgb(100, 42, 134)
HSLhsl(278, 52%, 35%)
HSVhsv(278, 69%, 53%)
CMYKcmyk(25.4%, 68.7%, 0%, 47.5%)
CIE-LABlab(29.63, 42.36, -40.74)
CIE-LCHlch(29.63, 58.77, 316.11°)
OKLaboklab(41.19% 0.0979 -0.1151)
OKLCHoklch(41.19% 0.151 310.4)
XYZxyz(10.3857, 6.0867, 23.1774)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A86 #4C862A
analogous
#362A86 #642A86 #862A7A
triadic
#642A86 #86642A #2A8664
tetradic
#642A86 #86362A #4C862A #2A7A86
square
#642A86 #86362A #4C862A #2A7A86
split-complementary
#642A86 #7A862A #2A8636
monochromatic
#1E0D29 #411B57 #642A86 #8739B5 #A45ECD

Accessibility & contrast

On white

9.47
#642A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642A86
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A86#FFFFFF#000000##FFFFFF
##642A861.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#1D4784
Tritanopia (blue-blind)
#5F3D54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642a86;
/* rgb */ color: rgb(100, 42, 134);
/* oklch */ color: oklch(41.2% 0.151 310.4);
Tailwind
colors: {
  custom: {
    50: '#9368aa',
    500: '#642a86',
    950: '#000000',
  },
}
SCSS
$custom: #642a86;
$custom-light: #9368aa;
$custom-dark: #000000;
JSON
{
  "hex": "#642a86",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 277.826,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41188,
    "c": 0.15105,
    "h": 310.4
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#642A86
secondary
#7AB25A
accent
#DC4C81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642A86

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

Preview Lab → · Contrast checker → · Palette generator →

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