#642C92#642C92

#642C92 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.161 H 305.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#642C92
RGBrgb(100, 44, 146)
HSLhsl(273, 54%, 37%)
HSVhsv(273, 70%, 57%)
CMYKcmyk(31.5%, 69.9%, 0%, 42.7%)
CIE-LABlab(30.85, 44.25, -46.21)
CIE-LCHlch(30.85, 63.98, 313.76°)
OKLaboklab(42.33% 0.0942 -0.1311)
OKLCHoklch(42.33% 0.161 305.7)
XYZxyz(11.3434, 6.5861, 27.8622)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C92 #5A922C
analogous
#312C92 #642C92 #922C8D
triadic
#642C92 #92642C #2C9264
tetradic
#642C92 #92312C #5A922C #2C8D92
square
#642C92 #92312C #5A922C #2C8D92
split-complementary
#642C92 #8D922C #2C9231
monochromatic
#241034 #441E63 #642C92 #843AC1 #A167D1

Accessibility & contrast

On white

9.06
#642C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#642C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C92
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C92#FFFFFF#000000##FFFFFF
##642C921.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004795
Deuteranopia (green-blind)
#0A4990
Tritanopia (blue-blind)
#5C435B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642c92;
/* rgb */ color: rgb(100, 44, 146);
/* oklch */ color: oklch(42.3% 0.161 305.7);
Tailwind
colors: {
  custom: {
    50: '#946ab3',
    500: '#642c92',
    950: '#000000',
  },
}
SCSS
$custom: #642c92;
$custom-light: #946ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#642c92",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 272.941,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42333,
    "c": 0.16147,
    "h": 305.7
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#642C92
secondary
#89B862
accent
#DD4B8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C92

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

Preview Lab → · Contrast checker → · Palette generator →

#642C92 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva