#642696#642696

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

Color values

HEX#642696
RGBrgb(100, 38, 150)
HSLhsl(273, 60%, 37%)
HSVhsv(273, 75%, 59%)
CMYKcmyk(33.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(30.15, 48.03, -49.79)
CIE-LCHlch(30.15, 69.18, 313.97°)
OKLaboklab(41.94% 0.0999 -0.1416)
OKLCHoklch(41.94% 0.173 305.2)
XYZxyz(11.4524, 6.2976, 29.4605)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642696 #589626
analogous
#2C2696 #642696 #962690
triadic
#642696 #966426 #269664
tetradic
#642696 #962C26 #589626 #269096
square
#642696 #962C26 #589626 #269096
split-complementary
#642696 #909626 #26962C
monochromatic
#230D34 #431A65 #642696 #8532C7 #A260D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642696#FFFFFF#000000##FFFFFF
##6426961.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)
#004599
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#5B415C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642696;
/* rgb */ color: rgb(100, 38, 150);
/* oklch */ color: oklch(41.9% 0.173 305.2);
Tailwind
colors: {
  custom: {
    50: '#9567b6',
    500: '#642696',
    950: '#000000',
  },
}
SCSS
$custom: #642696;
$custom-light: #9567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642696",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 273.214,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.17333,
    "h": 305.2
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#642696
secondary
#87BC5C
accent
#E3458B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642696

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

Preview Lab → · Contrast checker → · Palette generator →

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