#642A99#642A99

#642A99 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.172 H 303.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#642A99
RGBrgb(100, 42, 153)
HSLhsl(271, 57%, 38%)
HSVhsv(271, 73%, 60%)
CMYKcmyk(34.6%, 72.5%, 0%, 40%)
CIE-LABlab(31.03, 46.93, -50.19)
CIE-LCHlch(31.03, 68.71, 313.08°)
OKLaboklab(42.63% 0.0953 -0.1428)
OKLCHoklch(42.63% 0.172 303.7)
XYZxyz(11.8319, 6.6652, 30.7940)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A99 #5F992A
analogous
#2C2A99 #642A99 #992A96
triadic
#642A99 #99642A #2A9964
tetradic
#642A99 #992C2A #5F992A #2A9699
square
#642A99 #992C2A #5F992A #2A9699
split-complementary
#642A99 #96992A #2A992C
monochromatic
#251039 #451D69 #642A99 #8338C8 #A168D6

Accessibility & contrast

On white

9.00
#642A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#642A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A99
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A99#FFFFFF#000000##FFFFFF
##642A991.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642a99;
/* rgb */ color: rgb(100, 42, 153);
/* oklch */ color: oklch(42.6% 0.172 303.7);
Tailwind
colors: {
  custom: {
    50: '#9569b8',
    500: '#642a99',
    950: '#000000',
  },
}
SCSS
$custom: #642a99;
$custom-light: #9569b8;
$custom-dark: #000000;
JSON
{
  "hex": "#642a99",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 271.351,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42633,
    "c": 0.1717,
    "h": 303.7
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#642A99
secondary
#8DBC63
accent
#E04890
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642A99

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

Preview Lab → · Contrast checker → · Palette generator →

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