#642388#642388

#642388 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.162 H 310.5°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#642388
RGBrgb(100, 35, 136)
HSLhsl(279, 59%, 34%)
HSVhsv(279, 74%, 53%)
CMYKcmyk(26.5%, 74.3%, 0%, 46.7%)
CIE-LABlab(28.61, 46.07, -43.63)
CIE-LCHlch(28.61, 63.45, 316.56°)
OKLaboklab(40.51% 0.1055 -0.1235)
OKLCHoklch(40.51% 0.162 310.5)
XYZxyz(10.2996, 5.6892, 23.8433)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642388 #478823
analogous
#312388 #642388 #882379
triadic
#642388 #886423 #238864
tetradic
#642388 #883123 #478823 #237988
square
#642388 #883123 #478823 #237988
split-complementary
#642388 #798823 #238831
monochromatic
#1C0A27 #401657 #642388 #8830B9 #A553D3

Accessibility & contrast

On white

9.82
#642388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#642388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642388
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642388#FFFFFF#000000##FFFFFF
##6423881.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#104586
Tritanopia (blue-blind)
#5F3A53
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642388;
/* rgb */ color: rgb(100, 35, 136);
/* oklch */ color: oklch(40.5% 0.162 310.5);
Tailwind
colors: {
  custom: {
    50: '#9464ab',
    500: '#642388',
    950: '#000000',
  },
}
SCSS
$custom: #642388;
$custom-light: #9464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642388",
  "rgb": {
    "r": 100,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 278.614,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.16241,
    "h": 310.5
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#642388
secondary
#75B750
accent
#E2467D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642388

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

Preview Lab → · Contrast checker → · Palette generator →

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