#642C88#642C88

#642C88 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.150 H 309.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#642C88
RGBrgb(100, 44, 136)
HSLhsl(277, 51%, 35%)
HSVhsv(277, 68%, 53%)
CMYKcmyk(26.5%, 67.6%, 0%, 46.7%)
CIE-LABlab(30.13, 41.84, -41.18)
CIE-LCHlch(30.13, 58.71, 315.45°)
OKLaboklab(41.59% 0.0953 -0.1164)
OKLCHoklch(41.59% 0.15 309.3)
XYZxyz(10.5993, 6.2885, 23.9432)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C88 #50882C
analogous
#362C88 #642C88 #882C7E
triadic
#642C88 #88642C #2C8864
tetradic
#642C88 #88362C #50882C #2C7E88
square
#642C88 #88362C #50882C #2C7E88
split-complementary
#642C88 #7E882C #2C8836
monochromatic
#200E2C #421D5A #642C88 #863BB6 #A362CC

Accessibility & contrast

On white

9.30
#642C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#642C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C88
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C88#FFFFFF#000000##FFFFFF
##642C881.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#1D4886
Tritanopia (blue-blind)
#5F3F56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642c88;
/* rgb */ color: rgb(100, 44, 136);
/* oklch */ color: oklch(41.6% 0.150 309.3);
Tailwind
colors: {
  custom: {
    50: '#9369ab',
    500: '#642c88',
    950: '#000000',
  },
}
SCSS
$custom: #642c88;
$custom-light: #9369ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642c88",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 276.522,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41591,
    "c": 0.1504,
    "h": 309.3
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#642C88
secondary
#7FB35D
accent
#DB4D85
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642C88

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

Preview Lab → · Contrast checker → · Palette generator →

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