#642A9C#642A9C

#642A9C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.175 H 302.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#642A9C
RGBrgb(100, 42, 156)
HSLhsl(271, 58%, 39%)
HSVhsv(271, 73%, 61%)
CMYKcmyk(35.9%, 73.1%, 0%, 38.8%)
CIE-LABlab(31.27, 47.67, -51.64)
CIE-LCHlch(31.27, 70.28, 312.71°)
OKLaboklab(42.87% 0.0948 -0.1471)
OKLCHoklch(42.87% 0.175 302.8)
XYZxyz(12.0828, 6.7655, 32.1154)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A9C #629C2A
analogous
#2B2A9C #642A9C #9C2A9B
triadic
#642A9C #9C642A #2A9C64
tetradic
#642A9C #9C2B2A #629C2A #2A9B9C
square
#642A9C #9C2B2A #629C2A #2A9B9C
split-complementary
#642A9C #9B9C2A #2A9C2B
monochromatic
#26103C #451D6C #642A9C #8339CA #A16AD7

Accessibility & contrast

On white

8.92
#642A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642A9C
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A9C#FFFFFF#000000##FFFFFF
##642A9C1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#594660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642a9c;
/* rgb */ color: rgb(100, 42, 156);
/* oklch */ color: oklch(42.9% 0.175 302.8);
Tailwind
colors: {
  custom: {
    50: '#9569ba',
    500: '#642a9c',
    950: '#000000',
  },
}
SCSS
$custom: #642a9c;
$custom-light: #9569ba;
$custom-dark: #000000;
JSON
{
  "hex": "#642a9c",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 270.526,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.17496,
    "h": 302.8
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#642A9C
secondary
#90BD65
accent
#E14793
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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