#642F71#642F71

#642F71 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.5% C 0.120 H 319.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#642F71
RGBrgb(100, 47, 113)
HSLhsl(288, 41%, 31%)
HSVhsv(288, 58%, 44%)
CMYKcmyk(11.5%, 58.4%, 0%, 55.7%)
CIE-LABlab(29.25, 34.97, -28.13)
CIE-LCHlch(29.25, 44.88, 321.19°)
OKLaboklab(40.48% 0.0912 -0.0782)
OKLCHoklch(40.48% 0.12 319.4)
XYZxyz(9.2523, 5.9350, 16.2778)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F71 #3C712F
analogous
#432F71 #642F71 #712F5D
triadic
#642F71 #71642F #2F7164
tetradic
#642F71 #71432F #3C712F #2F5D71
square
#642F71 #71432F #3C712F #2F5D71
split-complementary
#642F71 #5D712F #2F7143
monochromatic
#180B1B #3E1D46 #642F71 #8A419C #AA5EBC

Accessibility & contrast

On white

9.60
#642F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#642F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F71
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F71#FFFFFF#000000##FFFFFF
##642F711.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214173
Deuteranopia (green-blind)
#33476F
Tritanopia (blue-blind)
#64394B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #642f71;
/* rgb */ color: rgb(100, 47, 113);
/* oklch */ color: oklch(40.5% 0.120 319.4);
Tailwind
colors: {
  custom: {
    50: '#926a9a',
    500: '#642f71',
    950: '#000000',
  },
}
SCSS
$custom: #642f71;
$custom-light: #926a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#642f71",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 288.182,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.12019,
    "h": 319.4
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#642F71
secondary
#68A25A
accent
#D1576F
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #642F71

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

Preview Lab → · Contrast checker → · Palette generator →

#642F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva