#642794#642794

#642794 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.170 H 305.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#642794
RGBrgb(100, 39, 148)
HSLhsl(274, 58%, 37%)
HSVhsv(274, 74%, 58%)
CMYKcmyk(32.4%, 73.6%, 0%, 42%)
CIE-LABlab(30.15, 47.10, -48.56)
CIE-LCHlch(30.15, 67.65, 314.13°)
OKLaboklab(41.89% 0.0993 -0.138)
OKLCHoklch(41.89% 0.17 305.7)
XYZxyz(11.3252, 6.2986, 28.6304)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642794 #579427
analogous
#2E2794 #642794 #94278E
triadic
#642794 #946427 #279464
tetradic
#642794 #942E27 #579427 #278E94
square
#642794 #942E27 #579427 #278E94
split-complementary
#642794 #8E9427 #27942E
monochromatic
#230D33 #431A64 #642794 #8534C4 #A260D5

Accessibility & contrast

On white

9.29
#642794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#642794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642794
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642794#FFFFFF#000000##FFFFFF
##6427941.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#5B415B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642794;
/* rgb */ color: rgb(100, 39, 148);
/* oklch */ color: oklch(41.9% 0.170 305.7);
Tailwind
colors: {
  custom: {
    50: '#9567b4',
    500: '#642794',
    950: '#000000',
  },
}
SCSS
$custom: #642794;
$custom-light: #9567b4;
$custom-dark: #000000;
JSON
{
  "hex": "#642794",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 273.578,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41888,
    "c": 0.17002,
    "h": 305.7
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#642794
secondary
#86BB5C
accent
#E2468B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642794

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

Preview Lab → · Contrast checker → · Palette generator →

#642794 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva