#642B99#642B99

#642B99 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.170 H 303.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#642B99
RGBrgb(100, 43, 153)
HSLhsl(271, 56%, 38%)
HSVhsv(271, 72%, 60%)
CMYKcmyk(34.6%, 71.9%, 0%, 40%)
CIE-LABlab(31.20, 46.46, -49.92)
CIE-LCHlch(31.20, 68.19, 312.94°)
OKLaboklab(42.75% 0.0943 -0.142)
OKLCHoklch(42.75% 0.17 303.6)
XYZxyz(11.8678, 6.7370, 30.8060)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B99 #60992B
analogous
#2D2B99 #642B99 #992B97
triadic
#642B99 #99642B #2B9964
tetradic
#642B99 #992D2B #60992B #2B9799
square
#642B99 #992D2B #60992B #2B9799
split-complementary
#642B99 #97992B #2B992D
monochromatic
#261039 #451E69 #642B99 #833AC8 #A169D5

Accessibility & contrast

On white

8.95
#642B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#642B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B99
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B99#FFFFFF#000000##FFFFFF
##642B991.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#5A455F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642b99;
/* rgb */ color: rgb(100, 43, 153);
/* oklch */ color: oklch(42.8% 0.170 303.6);
Tailwind
colors: {
  custom: {
    50: '#9569b8',
    500: '#642b99',
    950: '#000000',
  },
}
SCSS
$custom: #642b99;
$custom-light: #9569b8;
$custom-dark: #000000;
JSON
{
  "hex": "#642b99",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 271.091,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42752,
    "c": 0.17046,
    "h": 303.6
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#642B99
secondary
#8EBC64
accent
#DF4891
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642B99

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

Preview Lab → · Contrast checker → · Palette generator →

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