#642A89#642A89

#642A89 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.154 H 309.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#642A89
RGBrgb(100, 42, 137)
HSLhsl(277, 53%, 35%)
HSVhsv(277, 69%, 54%)
CMYKcmyk(27%, 69.3%, 0%, 46.3%)
CIE-LABlab(29.84, 43.06, -42.27)
CIE-LCHlch(29.84, 60.34, 315.53°)
OKLaboklab(41.41% 0.0976 -0.1195)
OKLCHoklch(41.41% 0.154 309.2)
XYZxyz(10.5980, 6.1716, 24.2950)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A89 #4F892A
analogous
#352A89 #642A89 #892A7E
triadic
#642A89 #89642A #2A8964
tetradic
#642A89 #89352A #4F892A #2A7E89
square
#642A89 #89352A #4F892A #2A7E89
split-complementary
#642A89 #7E892A #2A8935
monochromatic
#200D2B #421C5A #642A89 #8638B8 #A35FCE

Accessibility & contrast

On white

9.40
#642A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642A89
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A89#FFFFFF#000000##FFFFFF
##642A891.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#194787
Tritanopia (blue-blind)
#5F3E56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642a89;
/* rgb */ color: rgb(100, 42, 137);
/* oklch */ color: oklch(41.4% 0.154 309.2);
Tailwind
colors: {
  custom: {
    50: '#9468ac',
    500: '#642a89',
    950: '#000000',
  },
}
SCSS
$custom: #642a89;
$custom-light: #9468ac;
$custom-dark: #000000;
JSON
{
  "hex": "#642a89",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 276.632,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41407,
    "c": 0.15431,
    "h": 309.2
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#642A89
secondary
#7EB45B
accent
#DC4B84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642A89

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

Preview Lab → · Contrast checker → · Palette generator →

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