#642887#642887

#642887 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.155 H 310.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#642887
RGBrgb(100, 40, 135)
HSLhsl(278, 54%, 34%)
HSVhsv(278, 70%, 53%)
CMYKcmyk(25.9%, 70.4%, 0%, 47.1%)
CIE-LABlab(29.35, 43.56, -41.81)
CIE-LCHlch(29.35, 60.38, 316.17°)
OKLaboklab(41.01% 0.1001 -0.1182)
OKLCHoklch(41.01% 0.155 310.3)
XYZxyz(10.3866, 5.9764, 23.5234)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642887 #4B8728
analogous
#352887 #642887 #87287B
triadic
#642887 #876428 #288764
tetradic
#642887 #873528 #4B8728 #287B87
square
#642887 #873528 #4B8728 #287B87
split-complementary
#642887 #7B8728 #288735
monochromatic
#1E0C29 #411A58 #642887 #8736B6 #A45BCE

Accessibility & contrast

On white

9.57
#642887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#642887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642887
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642887#FFFFFF#000000##FFFFFF
##6428871.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642887;
/* rgb */ color: rgb(100, 40, 135);
/* oklch */ color: oklch(41.0% 0.155 310.3);
Tailwind
colors: {
  custom: {
    50: '#9467ab',
    500: '#642887',
    950: '#000000',
  },
}
SCSS
$custom: #642887;
$custom-light: #9467ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642887",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 277.895,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.15489,
    "h": 310.3
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#642887
secondary
#79B457
accent
#DE4A80
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642887

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

Preview Lab → · Contrast checker → · Palette generator →

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