#642A8D#642A8D

#642A8D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.159 H 307.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#642A8D
RGBrgb(100, 42, 141)
HSLhsl(275, 54%, 36%)
HSVhsv(275, 70%, 55%)
CMYKcmyk(29.1%, 70.2%, 0%, 44.7%)
CIE-LABlab(30.13, 44.02, -44.28)
CIE-LCHlch(30.13, 62.44, 314.83°)
OKLaboklab(41.7% 0.0971 -0.1255)
OKLCHoklch(41.7% 0.159 307.7)
XYZxyz(10.8902, 6.2885, 25.8342)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A8D #538D2A
analogous
#332A8D #642A8D #8D2A84
triadic
#642A8D #8D642A #2A8D64
tetradic
#642A8D #8D332A #538D2A #2A848D
square
#642A8D #8D332A #538D2A #2A848D
split-complementary
#642A8D #848D2A #2A8D33
monochromatic
#210E2F #431C5E #642A8D #8538BC #A261D0

Accessibility & contrast

On white

9.30
#642A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#642A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A8D
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A8D#FFFFFF#000000##FFFFFF
##642A8D1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#12478B
Tritanopia (blue-blind)
#5D4058
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642a8d;
/* rgb */ color: rgb(100, 42, 141);
/* oklch */ color: oklch(41.7% 0.159 307.7);
Tailwind
colors: {
  custom: {
    50: '#9468af',
    500: '#642a8d',
    950: '#000000',
  },
}
SCSS
$custom: #642a8d;
$custom-light: #9468af;
$custom-dark: #000000;
JSON
{
  "hex": "#642a8d",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 275.152,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41704,
    "c": 0.15867,
    "h": 307.7
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#642A8D
secondary
#82B65D
accent
#DD4A87
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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