#642A94#642A94

#642A94 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.166 H 305.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#642A94
RGBrgb(100, 42, 148)
HSLhsl(273, 56%, 37%)
HSVhsv(273, 72%, 58%)
CMYKcmyk(32.4%, 71.6%, 0%, 42%)
CIE-LABlab(30.65, 45.71, -47.75)
CIE-LCHlch(30.65, 66.10, 313.75°)
OKLaboklab(42.24% 0.0961 -0.1357)
OKLCHoklch(42.24% 0.166 305.3)
XYZxyz(11.4276, 6.5035, 28.6645)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A94 #5A942A
analogous
#2F2A94 #642A94 #942A8F
triadic
#642A94 #94642A #2A9464
tetradic
#642A94 #942F2A #5A942A #2A8F94
square
#642A94 #942F2A #5A942A #2A8F94
split-complementary
#642A94 #8F942A #2A942F
monochromatic
#240F35 #441C64 #642A94 #8438C4 #A165D3

Accessibility & contrast

On white

9.13
#642A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A94
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A94#FFFFFF#000000##FFFFFF
##642A941.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#5B425C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642a94;
/* rgb */ color: rgb(100, 42, 148);
/* oklch */ color: oklch(42.2% 0.166 305.3);
Tailwind
colors: {
  custom: {
    50: '#9569b4',
    500: '#642a94',
    950: '#000000',
  },
}
SCSS
$custom: #642a94;
$custom-light: #9569b4;
$custom-dark: #000000;
JSON
{
  "hex": "#642a94",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 272.83,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42239,
    "c": 0.16628,
    "h": 305.3
  },
  "luminance": 0.06503
}

Semantic roles & 50–950 ramp

primary
#642A94
secondary
#89B960
accent
#DF498D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642A94

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

Preview Lab → · Contrast checker → · Palette generator →

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