#642694#642694

#642694 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 305.9°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#642694
RGBrgb(100, 38, 148)
HSLhsl(274, 59%, 36%)
HSVhsv(274, 74%, 58%)
CMYKcmyk(32.4%, 74.3%, 0%, 42%)
CIE-LABlab(29.99, 47.55, -48.81)
CIE-LCHlch(29.99, 68.15, 314.25°)
OKLaboklab(41.78% 0.1003 -0.1388)
OKLCHoklch(41.78% 0.171 305.9)
XYZxyz(11.2928, 6.2338, 28.6196)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642694 #569426
analogous
#2D2694 #642694 #94268D
triadic
#642694 #946426 #269464
tetradic
#642694 #942D26 #569426 #268D94
square
#642694 #942D26 #569426 #268D94
split-complementary
#642694 #8D9426 #26942D
monochromatic
#220D33 #431963 #642694 #8533C5 #A25FD6

Accessibility & contrast

On white

9.35
#642694 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#642694 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642694
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642694#FFFFFF#000000##FFFFFF
##6426941.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642694;
/* rgb */ color: rgb(100, 38, 148);
/* oklch */ color: oklch(41.8% 0.171 305.9);
Tailwind
colors: {
  custom: {
    50: '#9566b4',
    500: '#642694',
    950: '#000000',
  },
}
SCSS
$custom: #642694;
$custom-light: #9566b4;
$custom-dark: #000000;
JSON
{
  "hex": "#642694",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 148
  },
  "hsl": {
    "h": 273.818,
    "s": 59.14,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41775,
    "c": 0.17122,
    "h": 305.9
  },
  "luminance": 0.06234
}

Semantic roles & 50–950 ramp

primary
#642694
secondary
#85BB5B
accent
#E2458A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642694

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

Preview Lab → · Contrast checker → · Palette generator →

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