#642987#642987

#642987 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.154 H 310.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#642987
RGBrgb(100, 41, 135)
HSLhsl(278, 53%, 35%)
HSVhsv(278, 70%, 53%)
CMYKcmyk(25.9%, 69.6%, 0%, 47.1%)
CIE-LABlab(29.52, 43.08, -41.54)
CIE-LCHlch(29.52, 59.84, 316.05°)
OKLaboklab(41.14% 0.0989 -0.1174)
OKLCHoklch(41.14% 0.154 310.1)
XYZxyz(10.4208, 6.0447, 23.5348)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642987 #4C8729
analogous
#352987 #642987 #87297B
triadic
#642987 #876429 #298764
tetradic
#642987 #873529 #4C8729 #297B87
square
#642987 #873529 #4C8729 #297B87
split-complementary
#642987 #7B8729 #298735
monochromatic
#1E0C29 #411B58 #642987 #8737B6 #A45DCE

Accessibility & contrast

On white

9.51
#642987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#642987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642987
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642987#FFFFFF#000000##FFFFFF
##6429871.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#1B4685
Tritanopia (blue-blind)
#5F3D54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642987;
/* rgb */ color: rgb(100, 41, 135);
/* oklch */ color: oklch(41.1% 0.154 310.1);
Tailwind
colors: {
  custom: {
    50: '#9468ab',
    500: '#642987',
    950: '#000000',
  },
}
SCSS
$custom: #642987;
$custom-light: #9468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642987",
  "rgb": {
    "r": 100,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 277.66,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41135,
    "c": 0.15352,
    "h": 310.1
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#642987
secondary
#7AB359
accent
#DD4B81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642987

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

Preview Lab → · Contrast checker → · Palette generator →

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