#642162#642162

#642162 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.128 H 329.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#642162
RGBrgb(100, 33, 98)
HSLhsl(302, 50%, 26%)
HSVhsv(302, 67%, 39%)
CMYKcmyk(0%, 67%, 2%, 60.8%)
CIE-LABlab(25.80, 38.98, -23.91)
CIE-LCHlch(25.80, 45.73, 328.48°)
OKLaboklab(37.69% 0.1095 -0.0659)
OKLCHoklch(37.69% 0.128 329)
XYZxyz(8.0039, 4.6794, 12.0346)
Luminance0.0468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642162 #216423
analogous
#442164 #642162 #642140
triadic
#642162 #626421 #216264
tetradic
#642162 #644421 #216423 #214064
square
#642162 #644421 #216423 #214064
split-complementary
#642162 #406421 #216444
monochromatic
#170817 #361235 #642162 #92308F #C040BC

Accessibility & contrast

On white

10.85
#642162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#642162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642162
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642162#FFFFFF#000000##FFFFFF
##6421621.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3764
Deuteranopia (green-blind)
#324060
Tritanopia (blue-blind)
#67293E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #642162;
/* rgb */ color: rgb(100, 33, 98);
/* oklch */ color: oklch(37.7% 0.128 329.0);
Tailwind
colors: {
  custom: {
    50: '#93628f',
    500: '#642162',
    950: '#000000',
  },
}
SCSS
$custom: #642162;
$custom-light: #93628f;
$custom-dark: #000000;
JSON
{
  "hex": "#642162",
  "rgb": {
    "r": 100,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 301.791,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.37692,
    "c": 0.12781,
    "h": 329
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#642162
secondary
#49984B
accent
#DA524E
background
#F9F6F8
surface
#F2EBF0
border
#CCC6CB
text
#0D050C
muted
#7E7A7D

Preview Lab

Preview with #642162

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

Preview Lab → · Contrast checker → · Palette generator →

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