#642C87#642C87

#642C87 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.149 H 309.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#642C87
RGBrgb(100, 44, 135)
HSLhsl(277, 51%, 35%)
HSVhsv(277, 67%, 53%)
CMYKcmyk(25.9%, 67.4%, 0%, 47.1%)
CIE-LABlab(30.06, 41.60, -40.68)
CIE-LCHlch(30.06, 58.18, 315.64°)
OKLaboklab(41.52% 0.0954 -0.1149)
OKLCHoklch(41.52% 0.149 309.7)
XYZxyz(10.5285, 6.2602, 23.5707)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C87 #4F872C
analogous
#362C87 #642C87 #872C7C
triadic
#642C87 #87642C #2C8764
tetradic
#642C87 #87362C #4F872C #2C7C87
square
#642C87 #87362C #4F872C #2C7C87
split-complementary
#642C87 #7C872C #2C8736
monochromatic
#200E2B #421D59 #642C87 #863BB5 #A362CC

Accessibility & contrast

On white

9.33
#642C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#642C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C87
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C87#FFFFFF#000000##FFFFFF
##642C871.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#1E4885
Tritanopia (blue-blind)
#5F3F55
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642c87;
/* rgb */ color: rgb(100, 44, 135);
/* oklch */ color: oklch(41.5% 0.149 309.7);
Tailwind
colors: {
  custom: {
    50: '#9369aa',
    500: '#642c87',
    950: '#000000',
  },
}
SCSS
$custom: #642c87;
$custom-light: #9369aa;
$custom-dark: #000000;
JSON
{
  "hex": "#642c87",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 276.923,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41519,
    "c": 0.1493,
    "h": 309.7
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#642C87
secondary
#7EB25D
accent
#DA4D84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642C87

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

Preview Lab → · Contrast checker → · Palette generator →

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