#642787#642787

#642787 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.156 H 310.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#642787
RGBrgb(100, 39, 135)
HSLhsl(278, 55%, 34%)
HSVhsv(278, 71%, 53%)
CMYKcmyk(25.9%, 71.1%, 0%, 47.1%)
CIE-LABlab(29.18, 44.03, -42.09)
CIE-LCHlch(29.18, 60.91, 316.30°)
OKLaboklab(40.89% 0.1012 -0.119)
OKLCHoklch(40.89% 0.156 310.4)
XYZxyz(10.3534, 5.9099, 23.5123)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642787 #4A8727
analogous
#342787 #642787 #87277A
triadic
#642787 #876427 #278764
tetradic
#642787 #873427 #4A8727 #277A87
square
#642787 #873427 #4A8727 #277A87
split-complementary
#642787 #7A8727 #278734
monochromatic
#1E0C28 #411958 #642787 #8735B6 #A459CF

Accessibility & contrast

On white

9.62
#642787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#642787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642787
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642787#FFFFFF#000000##FFFFFF
##6427871.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#184685
Tritanopia (blue-blind)
#5F3C54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #642787;
/* rgb */ color: rgb(100, 39, 135);
/* oklch */ color: oklch(40.9% 0.156 310.4);
Tailwind
colors: {
  custom: {
    50: '#9466ab',
    500: '#642787',
    950: '#000000',
  },
}
SCSS
$custom: #642787;
$custom-light: #9466ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642787",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 278.125,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40891,
    "c": 0.15624,
    "h": 310.4
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#642787
secondary
#78B456
accent
#DF4980
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642787

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

Preview Lab → · Contrast checker → · Palette generator →

#642787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva