#642771#642771

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

Color values

HEX#642771
RGBrgb(100, 39, 113)
HSLhsl(289, 49%, 30%)
HSVhsv(289, 65%, 44%)
CMYKcmyk(11.5%, 65.5%, 0%, 55.7%)
CIE-LABlab(27.72, 39.13, -30.56)
CIE-LCHlch(27.72, 49.65, 322.01°)
OKLaboklab(39.37% 0.1024 -0.0853)
OKLCHoklch(39.37% 0.133 320.2)
XYZxyz(8.9613, 5.3530, 16.1808)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642771 #347127
analogous
#3F2771 #642771 #712759
triadic
#642771 #716427 #277164
tetradic
#642771 #713F27 #347127 #275971
square
#642771 #713F27 #347127 #275971
split-complementary
#642771 #597127 #27713F
monochromatic
#140817 #3C1744 #642771 #8C379E #AE50C3

Accessibility & contrast

On white

10.14
#642771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#642771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642771
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642771#FFFFFF#000000##FFFFFF
##6427711.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#2D446F
Tritanopia (blue-blind)
#653348
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #642771;
/* rgb */ color: rgb(100, 39, 113);
/* oklch */ color: oklch(39.4% 0.133 320.2);
Tailwind
colors: {
  custom: {
    50: '#93669a',
    500: '#642771',
    950: '#000000',
  },
}
SCSS
$custom: #642771;
$custom-light: #93669a;
$custom-dark: #000000;
JSON
{
  "hex": "#642771",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 289.459,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39367,
    "c": 0.13321,
    "h": 320.2
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#642771
secondary
#5FA350
accent
#D85068
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642771

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

Preview Lab → · Contrast checker → · Palette generator →

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