#642870#642870

#642870 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.4% C 0.131 H 320.6°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#642870
RGBrgb(100, 40, 112)
HSLhsl(290, 47%, 30%)
HSVhsv(290, 64%, 44%)
CMYKcmyk(10.7%, 64.3%, 0%, 56.1%)
CIE-LABlab(27.84, 38.42, -29.73)
CIE-LCHlch(27.84, 48.58, 322.27°)
OKLaboklab(39.43% 0.101 -0.0828)
OKLCHoklch(39.43% 0.131 320.6)
XYZxyz(8.9386, 5.3972, 15.8970)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642870 #347028
analogous
#402870 #642870 #702858
triadic
#642870 #706428 #287064
tetradic
#642870 #704028 #347028 #285870
square
#642870 #704028 #347028 #285870
split-complementary
#642870 #587028 #287040
monochromatic
#140817 #3C1843 #642870 #8C389D #AE51C1

Accessibility & contrast

On white

10.10
#642870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#642870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642870
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642870#FFFFFF#000000##FFFFFF
##6428701.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D72
Deuteranopia (green-blind)
#2F446E
Tritanopia (blue-blind)
#653348
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642870;
/* rgb */ color: rgb(100, 40, 112);
/* oklch */ color: oklch(39.4% 0.131 320.6);
Tailwind
colors: {
  custom: {
    50: '#926699',
    500: '#642870',
    950: '#000000',
  },
}
SCSS
$custom: #642870;
$custom-light: #926699;
$custom-dark: #000000;
JSON
{
  "hex": "#642870",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 290,
    "s": 47.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.13063,
    "h": 320.6
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#642870
secondary
#5FA251
accent
#D75167
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642870

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

Preview Lab → · Contrast checker → · Palette generator →

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