#642399#642399

#642399 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.180 H 304.6°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#642399
RGBrgb(100, 35, 153)
HSLhsl(273, 63%, 37%)
HSVhsv(273, 77%, 60%)
CMYKcmyk(34.6%, 77.1%, 0%, 40%)
CIE-LABlab(29.94, 50.04, -51.97)
CIE-LCHlch(29.94, 72.14, 313.92°)
OKLaboklab(41.86% 0.1021 -0.148)
OKLCHoklch(41.86% 0.18 304.6)
XYZxyz(11.6050, 6.2113, 30.7183)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642399 #589923
analogous
#292399 #642399 #992393
triadic
#642399 #996423 #239964
tetradic
#642399 #992923 #589923 #239399
square
#642399 #992923 #589923 #239399
split-complementary
#642399 #939923 #239929
monochromatic
#230C35 #431867 #642399 #852ECB #A25DDA

Accessibility & contrast

On white

9.37
#642399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#642399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642399
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642399#FFFFFF#000000##FFFFFF
##6423991.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#5A415D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642399;
/* rgb */ color: rgb(100, 35, 153);
/* oklch */ color: oklch(41.9% 0.180 304.6);
Tailwind
colors: {
  custom: {
    50: '#9565b8',
    500: '#642399',
    950: '#000000',
  },
}
SCSS
$custom: #642399;
$custom-light: #9565b8;
$custom-dark: #000000;
JSON
{
  "hex": "#642399",
  "rgb": {
    "r": 100,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 273.051,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41861,
    "c": 0.17983,
    "h": 304.6
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#642399
secondary
#87BE59
accent
#E6428C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642399

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

Preview Lab → · Contrast checker → · Palette generator →

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