#642671#642671

#642671 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.2% C 0.135 H 320.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#642671
RGBrgb(100, 38, 113)
HSLhsl(290, 50%, 30%)
HSVhsv(290, 66%, 44%)
CMYKcmyk(11.5%, 66.4%, 0%, 55.7%)
CIE-LABlab(27.54, 39.62, -30.84)
CIE-LCHlch(27.54, 50.21, 322.10°)
OKLaboklab(39.24% 0.1037 -0.0861)
OKLCHoklch(39.24% 0.135 320.3)
XYZxyz(8.9289, 5.2882, 16.1700)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642671 #337126
analogous
#3F2671 #642671 #712659
triadic
#642671 #716426 #267164
tetradic
#642671 #713F26 #337126 #265971
square
#642671 #713F26 #337126 #265971
split-complementary
#642671 #597126 #26713F
monochromatic
#140817 #3B1743 #642671 #8D359F #AF4EC3

Accessibility & contrast

On white

10.21
#642671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#642671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642671
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642671#FFFFFF#000000##FFFFFF
##6426711.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#2D436F
Tritanopia (blue-blind)
#653248
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #642671;
/* rgb */ color: rgb(100, 38, 113);
/* oklch */ color: oklch(39.2% 0.135 320.3);
Tailwind
colors: {
  custom: {
    50: '#93659a',
    500: '#642671',
    950: '#000000',
  },
}
SCSS
$custom: #642671;
$custom-light: #93659a;
$custom-dark: #000000;
JSON
{
  "hex": "#642671",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 289.6,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39239,
    "c": 0.13474,
    "h": 320.3
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#642671
secondary
#5EA44F
accent
#D94F67
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642671

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

Preview Lab → · Contrast checker → · Palette generator →

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