#642677#642677

#642677 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.6% C 0.141 H 317.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#642677
RGBrgb(100, 38, 119)
HSLhsl(286, 52%, 31%)
HSVhsv(286, 68%, 47%)
CMYKcmyk(16%, 68.1%, 0%, 53.3%)
CIE-LABlab(27.92, 40.91, -34.06)
CIE-LCHlch(27.92, 53.23, 320.22°)
OKLaboklab(39.64% 0.1036 -0.0954)
OKLCHoklch(39.64% 0.141 317.4)
XYZxyz(9.2779, 5.4278, 18.0081)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642677 #397726
analogous
#3B2677 #642677 #772661
triadic
#642677 #776426 #267764
tetradic
#642677 #773B26 #397726 #266177
square
#642677 #773B26 #397726 #266177
split-complementary
#642677 #617726 #26773B
monochromatic
#16081A #3D1749 #642677 #8B35A5 #AB50C7

Accessibility & contrast

On white

10.07
#642677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#642677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642677
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642677#FFFFFF#000000##FFFFFF
##6426771.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073E79
Deuteranopia (green-blind)
#284475
Tritanopia (blue-blind)
#63354B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642677;
/* rgb */ color: rgb(100, 38, 119);
/* oklch */ color: oklch(39.6% 0.141 317.4);
Tailwind
colors: {
  custom: {
    50: '#93659f',
    500: '#642677',
    950: '#000000',
  },
}
SCSS
$custom: #642677;
$custom-light: #93659f;
$custom-dark: #000000;
JSON
{
  "hex": "#642677",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 119
  },
  "hsl": {
    "h": 285.926,
    "s": 51.592,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39635,
    "c": 0.14088,
    "h": 317.4
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#642677
secondary
#65A94F
accent
#DB4D6E
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642677

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

Preview Lab → · Contrast checker → · Palette generator →

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