#642087#642087

#642087 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.165 H 311.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#642087
RGBrgb(100, 32, 135)
HSLhsl(280, 62%, 33%)
HSVhsv(280, 76%, 53%)
CMYKcmyk(25.9%, 76.3%, 0%, 47.1%)
CIE-LABlab(28.09, 47.12, -43.85)
CIE-LCHlch(28.09, 64.37, 317.06°)
OKLaboklab(40.12% 0.1087 -0.1241)
OKLCHoklch(40.12% 0.165 311.2)
XYZxyz(10.1444, 5.4919, 23.4426)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642087 #438720
analogous
#312087 #642087 #872076
triadic
#642087 #876420 #208764
tetradic
#642087 #873120 #438720 #207687
square
#642087 #873120 #438720 #207687
split-complementary
#642087 #768720 #208731
monochromatic
#1B0924 #3F1456 #642087 #892CB8 #A64DD5

Accessibility & contrast

On white

10.01
#642087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#642087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642087
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642087#FFFFFF#000000##FFFFFF
##6420871.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#0D4385
Tritanopia (blue-blind)
#5F3852
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642087;
/* rgb */ color: rgb(100, 32, 135);
/* oklch */ color: oklch(40.1% 0.165 311.2);
Tailwind
colors: {
  custom: {
    50: '#9463ab',
    500: '#642087',
    950: '#000000',
  },
}
SCSS
$custom: #642087;
$custom-light: #9463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642087",
  "rgb": {
    "r": 100,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 279.612,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40115,
    "c": 0.16499,
    "h": 311.2
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

primary
#642087
secondary
#70B84B
accent
#E5437A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642087

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

Preview Lab → · Contrast checker → · Palette generator →

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