#642A88#642A88

#642A88 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.153 H 309.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#642A88
RGBrgb(100, 42, 136)
HSLhsl(277, 53%, 35%)
HSVhsv(277, 69%, 53%)
CMYKcmyk(26.5%, 69.1%, 0%, 46.7%)
CIE-LABlab(29.77, 42.83, -41.76)
CIE-LCHlch(29.77, 59.82, 315.72°)
OKLaboklab(41.33% 0.0977 -0.1181)
OKLCHoklch(41.33% 0.153 309.6)
XYZxyz(10.5266, 6.1430, 23.9190)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A88 #4E882A
analogous
#352A88 #642A88 #882A7D
triadic
#642A88 #88642A #2A8864
tetradic
#642A88 #88352A #4E882A #2A7D88
square
#642A88 #88352A #4E882A #2A7D88
split-complementary
#642A88 #7D882A #2A8835
monochromatic
#1F0D2A #421C59 #642A88 #8638B7 #A35FCE

Accessibility & contrast

On white

9.42
#642A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#642A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A88
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A88#FFFFFF#000000##FFFFFF
##642A881.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#1A4786
Tritanopia (blue-blind)
#5F3E55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642a88;
/* rgb */ color: rgb(100, 42, 136);
/* oklch */ color: oklch(41.3% 0.153 309.6);
Tailwind
colors: {
  custom: {
    50: '#9468ab',
    500: '#642a88',
    950: '#000000',
  },
}
SCSS
$custom: #642a88;
$custom-light: #9468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642a88",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 277.021,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41334,
    "c": 0.15322,
    "h": 309.6
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#642A88
secondary
#7DB35B
accent
#DC4C83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642A88

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

Preview Lab → · Contrast checker → · Palette generator →

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