#642A8A#642A8A

#642A8A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.155 H 308.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#642A8A
RGBrgb(100, 42, 138)
HSLhsl(276, 53%, 35%)
HSVhsv(276, 70%, 54%)
CMYKcmyk(27.5%, 69.6%, 0%, 45.9%)
CIE-LABlab(29.91, 43.30, -42.77)
CIE-LCHlch(29.91, 60.87, 315.35°)
OKLaboklab(41.48% 0.0975 -0.121)
OKLCHoklch(41.48% 0.155 308.8)
XYZxyz(10.6700, 6.2004, 24.6745)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A8A #508A2A
analogous
#342A8A #642A8A #8A2A80
triadic
#642A8A #8A642A #2A8A64
tetradic
#642A8A #8A342A #508A2A #2A808A
square
#642A8A #8A342A #508A2A #2A808A
split-complementary
#642A8A #808A2A #2A8A34
monochromatic
#200D2C #421C5B #642A8A #8638B9 #A360CF

Accessibility & contrast

On white

9.38
#642A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#642A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A8A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A8A#FFFFFF#000000##FFFFFF
##642A8A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#174788
Tritanopia (blue-blind)
#5E3F56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642a8a;
/* rgb */ color: rgb(100, 42, 138);
/* oklch */ color: oklch(41.5% 0.155 308.8);
Tailwind
colors: {
  custom: {
    50: '#9468ad',
    500: '#642a8a',
    950: '#000000',
  },
}
SCSS
$custom: #642a8a;
$custom-light: #9468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#642a8a",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 276.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41481,
    "c": 0.1554,
    "h": 308.8
  },
  "luminance": 0.062
}

Semantic roles & 50–950 ramp

primary
#642A8A
secondary
#7FB45B
accent
#DD4B85
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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