#642789#642789

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

Color values

HEX#642789
RGBrgb(100, 39, 137)
HSLhsl(277, 56%, 35%)
HSVhsv(277, 72%, 54%)
CMYKcmyk(27%, 71.5%, 0%, 46.3%)
CIE-LABlab(29.33, 44.50, -43.10)
CIE-LCHlch(29.33, 61.95, 315.92°)
OKLaboklab(41.04% 0.101 -0.122)
OKLCHoklch(41.04% 0.158 309.6)
XYZxyz(10.4955, 5.9667, 24.2609)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642789 #4C8927
analogous
#332789 #642789 #89277D
triadic
#642789 #896427 #278964
tetradic
#642789 #893327 #4C8927 #277D89
square
#642789 #893327 #4C8927 #277D89
split-complementary
#642789 #7D8927 #278933
monochromatic
#1E0C2A #411959 #642789 #8735B9 #A45AD0

Accessibility & contrast

On white

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

On black

2.19
#642789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##642789#FFFFFF#000000##FFFFFF
##6427891.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#144687
Tritanopia (blue-blind)
#5F3C55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #642789;
/* rgb */ color: rgb(100, 39, 137);
/* oklch */ color: oklch(41.0% 0.158 309.6);
Tailwind
colors: {
  custom: {
    50: '#9467ac',
    500: '#642789',
    950: '#000000',
  },
}
SCSS
$custom: #642789;
$custom-light: #9467ac;
$custom-dark: #000000;
JSON
{
  "hex": "#642789",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 277.347,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.15836,
    "h": 309.6
  },
  "luminance": 0.05967
}

Semantic roles & 50–950 ramp

primary
#642789
secondary
#7AB557
accent
#DF4982
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642789

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

Preview Lab → · Contrast checker → · Palette generator →

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