#642894#642894

#642894 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.169 H 305.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#642894
RGBrgb(100, 40, 148)
HSLhsl(273, 57%, 37%)
HSVhsv(273, 73%, 58%)
CMYKcmyk(32.4%, 73%, 0%, 42%)
CIE-LABlab(30.32, 46.64, -48.29)
CIE-LCHlch(30.32, 67.14, 314.01°)
OKLaboklab(42% 0.0983 -0.1372)
OKLCHoklch(42% 0.169 305.6)
XYZxyz(11.3584, 6.3651, 28.6414)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642894 #589428
analogous
#2E2894 #642894 #94288E
triadic
#642894 #946428 #289464
tetradic
#642894 #942E28 #589428 #288E94
square
#642894 #942E28 #589428 #288E94
split-complementary
#642894 #8E9428 #28942E
monochromatic
#230E34 #431B64 #642894 #8535C4 #A262D5

Accessibility & contrast

On white

9.24
#642894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642894
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642894#FFFFFF#000000##FFFFFF
##6428941.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642894;
/* rgb */ color: rgb(100, 40, 148);
/* oklch */ color: oklch(42.0% 0.169 305.6);
Tailwind
colors: {
  custom: {
    50: '#9568b4',
    500: '#642894',
    950: '#000000',
  },
}
SCSS
$custom: #642894;
$custom-light: #9568b4;
$custom-dark: #000000;
JSON
{
  "hex": "#642894",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 273.333,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42002,
    "c": 0.16879,
    "h": 305.6
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#642894
secondary
#87BA5E
accent
#E1478B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642894

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

Preview Lab → · Contrast checker → · Palette generator →

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