#642C8F#642C8F

#642C8F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.158 H 306.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#642C8F
RGBrgb(100, 44, 143)
HSLhsl(274, 53%, 37%)
HSVhsv(274, 69%, 56%)
CMYKcmyk(30.1%, 69.2%, 0%, 43.9%)
CIE-LABlab(30.63, 43.52, -44.71)
CIE-LCHlch(30.63, 62.40, 314.22°)
OKLaboklab(42.11% 0.0946 -0.1267)
OKLCHoklch(42.11% 0.158 306.7)
XYZxyz(11.1131, 6.4940, 26.6493)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C8F #578F2C
analogous
#322C8F #642C8F #8F2C89
triadic
#642C8F #8F642C #2C8F64
tetradic
#642C8F #8F322C #578F2C #2C898F
square
#642C8F #8F322C #578F2C #2C898F
split-complementary
#642C8F #898F2C #2C8F32
monochromatic
#230F31 #431E60 #642C8F #853ABE #A266D0

Accessibility & contrast

On white

9.14
#642C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C8F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C8F#FFFFFF#000000##FFFFFF
##642C8F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#12488D
Tritanopia (blue-blind)
#5D425A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642c8f;
/* rgb */ color: rgb(100, 44, 143);
/* oklch */ color: oklch(42.1% 0.158 306.7);
Tailwind
colors: {
  custom: {
    50: '#9469b0',
    500: '#642c8f',
    950: '#000000',
  },
}
SCSS
$custom: #642c8f;
$custom-light: #9469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#642c8f",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 273.939,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42106,
    "c": 0.15815,
    "h": 306.7
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#642C8F
secondary
#86B661
accent
#DC4B8A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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