#642387#642387

#642387 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.161 H 310.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#642387
RGBrgb(100, 35, 135)
HSLhsl(279, 59%, 33%)
HSVhsv(279, 74%, 53%)
CMYKcmyk(25.9%, 74.1%, 0%, 47.1%)
CIE-LABlab(28.54, 45.85, -43.12)
CIE-LCHlch(28.54, 62.94, 316.75°)
OKLaboklab(40.43% 0.1056 -0.122)
OKLCHoklch(40.43% 0.161 310.9)
XYZxyz(10.2289, 5.6609, 23.4708)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642387 #468723
analogous
#322387 #642387 #872378
triadic
#642387 #876423 #238764
tetradic
#642387 #873223 #468723 #237887
square
#642387 #873223 #468723 #237887
split-complementary
#642387 #788723 #238732
monochromatic
#1C0A26 #401656 #642387 #8830B8 #A552D2

Accessibility & contrast

On white

9.85
#642387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#642387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642387
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642387#FFFFFF#000000##FFFFFF
##6423871.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#124485
Tritanopia (blue-blind)
#5F3953
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642387;
/* rgb */ color: rgb(100, 35, 135);
/* oklch */ color: oklch(40.4% 0.161 310.9);
Tailwind
colors: {
  custom: {
    50: '#9464ab',
    500: '#642387',
    950: '#000000',
  },
}
SCSS
$custom: #642387;
$custom-light: #9464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642387",
  "rgb": {
    "r": 100,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 279,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40433,
    "c": 0.16138,
    "h": 310.9
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#642387
secondary
#74B650
accent
#E2467C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642387

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

Preview Lab → · Contrast checker → · Palette generator →

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