#642687#642687

#642687 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.158 H 310.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#642687
RGBrgb(100, 38, 135)
HSLhsl(278, 56%, 34%)
HSVhsv(278, 72%, 53%)
CMYKcmyk(25.9%, 71.9%, 0%, 47.1%)
CIE-LABlab(29.02, 44.50, -42.35)
CIE-LCHlch(29.02, 61.43, 316.41°)
OKLaboklab(40.77% 0.1024 -0.1198)
OKLCHoklch(40.77% 0.158 310.5)
XYZxyz(10.3210, 5.8451, 23.5015)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642687 #498726
analogous
#342687 #642687 #87267A
triadic
#642687 #876426 #268764
tetradic
#642687 #873426 #498726 #267A87
square
#642687 #873426 #498726 #267A87
split-complementary
#642687 #7A8726 #268734
monochromatic
#1D0B27 #411957 #642687 #8733B7 #A458D0

Accessibility & contrast

On white

9.68
#642687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#642687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642687
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642687#FFFFFF#000000##FFFFFF
##6426871.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#164585
Tritanopia (blue-blind)
#5F3B54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642687;
/* rgb */ color: rgb(100, 38, 135);
/* oklch */ color: oklch(40.8% 0.158 310.5);
Tailwind
colors: {
  custom: {
    50: '#9466ab',
    500: '#642687',
    950: '#000000',
  },
}
SCSS
$custom: #642687;
$custom-light: #9466ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642687",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 278.351,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40773,
    "c": 0.15756,
    "h": 310.5
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#642687
secondary
#77B554
accent
#DF487F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642687

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

Preview Lab → · Contrast checker → · Palette generator →

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