#642C8E#642C8E

#642C8E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.157 H 307.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#642C8E
RGBrgb(100, 44, 142)
HSLhsl(274, 53%, 36%)
HSVhsv(274, 69%, 56%)
CMYKcmyk(29.6%, 69%, 0%, 44.3%)
CIE-LABlab(30.55, 43.28, -44.21)
CIE-LCHlch(30.55, 61.87, 314.39°)
OKLaboklab(42.03% 0.0947 -0.1253)
OKLCHoklch(42.03% 0.157 307.1)
XYZxyz(11.0377, 6.4638, 26.2521)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C8E #568E2C
analogous
#332C8E #642C8E #8E2C87
triadic
#642C8E #8E642C #2C8E64
tetradic
#642C8E #8E332C #568E2C #2C878E
square
#642C8E #8E332C #568E2C #2C878E
split-complementary
#642C8E #878E2C #2C8E33
monochromatic
#220F31 #431E5F #642C8E #853ABD #A265CF

Accessibility & contrast

On white

9.16
#642C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C8E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C8E#FFFFFF#000000##FFFFFF
##642C8E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#14488C
Tritanopia (blue-blind)
#5D4159
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642c8e;
/* rgb */ color: rgb(100, 44, 142);
/* oklch */ color: oklch(42.0% 0.157 307.1);
Tailwind
colors: {
  custom: {
    50: '#9469b0',
    500: '#642c8e',
    950: '#000000',
  },
}
SCSS
$custom: #642c8e;
$custom-light: #9469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#642c8e",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 274.286,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.15705,
    "h": 307.1
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#642C8E
secondary
#85B660
accent
#DC4C8A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #642C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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