#642896#642896

#642896 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.171 H 304.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#642896
RGBrgb(100, 40, 150)
HSLhsl(273, 58%, 37%)
HSVhsv(273, 73%, 59%)
CMYKcmyk(33.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(30.47, 47.13, -49.27)
CIE-LCHlch(30.47, 68.18, 313.73°)
OKLaboklab(42.16% 0.0979 -0.1401)
OKLCHoklch(42.16% 0.171 304.9)
XYZxyz(11.5181, 6.4290, 29.4824)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642896 #5A9628
analogous
#2D2896 #642896 #962891
triadic
#642896 #966428 #289664
tetradic
#642896 #962D28 #5A9628 #289196
square
#642896 #962D28 #5A9628 #289196
split-complementary
#642896 #919628 #28962D
monochromatic
#240E35 #441B66 #642896 #8435C6 #A163D5

Accessibility & contrast

On white

9.19
#642896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642896
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642896#FFFFFF#000000##FFFFFF
##6428961.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642896;
/* rgb */ color: rgb(100, 40, 150);
/* oklch */ color: oklch(42.2% 0.171 304.9);
Tailwind
colors: {
  custom: {
    50: '#9568b6',
    500: '#642896',
    950: '#000000',
  },
}
SCSS
$custom: #642896;
$custom-light: #9568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642896",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 272.727,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42161,
    "c": 0.17093,
    "h": 304.9
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#642896
secondary
#89BB5F
accent
#E1478D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642896

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

Preview Lab → · Contrast checker → · Palette generator →

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