#642C85#642C85

#642C85 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.147 H 310.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#642C85
RGBrgb(100, 44, 133)
HSLhsl(278, 50%, 35%)
HSVhsv(278, 67%, 52%)
CMYKcmyk(24.8%, 66.9%, 0%, 47.8%)
CIE-LABlab(29.92, 41.12, -39.65)
CIE-LCHlch(29.92, 57.13, 316.04°)
OKLaboklab(41.38% 0.0955 -0.1119)
OKLCHoklch(41.38% 0.147 310.5)
XYZxyz(10.3890, 6.2044, 22.8360)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C85 #4D852C
analogous
#382C85 #642C85 #852C79
triadic
#642C85 #85642C #2C8564
tetradic
#642C85 #85382C #4D852C #2C7985
square
#642C85 #85382C #4D852C #2C7985
split-complementary
#642C85 #79852C #2C8538
monochromatic
#1F0E29 #411D57 #642C85 #873BB3 #A361CB

Accessibility & contrast

On white

9.37
#642C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#642C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##642C85#FFFFFF#000000##FFFFFF
##642C851.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)
#004488
Deuteranopia (green-blind)
#214783
Tritanopia (blue-blind)
#603E54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642c85;
/* rgb */ color: rgb(100, 44, 133);
/* oklch */ color: oklch(41.4% 0.147 310.5);
Tailwind
colors: {
  custom: {
    50: '#9369a9',
    500: '#642c85',
    950: '#000000',
  },
}
SCSS
$custom: #642c85;
$custom-light: #9369a9;
$custom-dark: #000000;
JSON
{
  "hex": "#642c85",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 277.753,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41376,
    "c": 0.14708,
    "h": 310.5
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#642C85
secondary
#7BB15C
accent
#DA4E82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642C85

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

Preview Lab → · Contrast checker → · Palette generator →

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