#642796#642796

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

Color values

HEX#642796
RGBrgb(100, 39, 150)
HSLhsl(273, 59%, 37%)
HSVhsv(273, 74%, 59%)
CMYKcmyk(33.3%, 74%, 0%, 41.2%)
CIE-LABlab(30.31, 47.58, -49.53)
CIE-LCHlch(30.31, 68.68, 313.85°)
OKLaboklab(42.05% 0.0989 -0.1409)
OKLCHoklch(42.05% 0.172 305.1)
XYZxyz(11.4848, 6.3624, 29.4713)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642796 #599627
analogous
#2D2796 #642796 #962791
triadic
#642796 #966427 #279664
tetradic
#642796 #962D27 #599627 #279196
square
#642796 #962D27 #599627 #279196
split-complementary
#642796 #919627 #27962D
monochromatic
#230E35 #441A65 #642796 #8434C7 #A161D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642796#FFFFFF#000000##FFFFFF
##6427961.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)
#004699
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#5B425C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642796;
/* rgb */ color: rgb(100, 39, 150);
/* oklch */ color: oklch(42.0% 0.172 305.1);
Tailwind
colors: {
  custom: {
    50: '#9567b6',
    500: '#642796',
    950: '#000000',
  },
}
SCSS
$custom: #642796;
$custom-light: #9567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642796",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 272.973,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42047,
    "c": 0.17213,
    "h": 305.1
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#642796
secondary
#88BC5D
accent
#E2468C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642796

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

Preview Lab → · Contrast checker → · Palette generator →

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