#642CAA#642CAA

#642CAA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.188 H 298.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#642CAA
RGBrgb(100, 44, 170)
HSLhsl(267, 59%, 42%)
HSVhsv(267, 74%, 67%)
CMYKcmyk(41.2%, 74.1%, 0%, 33.3%)
CIE-LABlab(32.73, 50.26, -57.71)
CIE-LCHlch(32.73, 76.53, 311.05°)
OKLaboklab(44.26% 0.0899 -0.165)
OKLCHoklch(44.26% 0.188 298.6)
XYZxyz(13.4101, 7.4128, 38.7467)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CAA #72AA2C
analogous
#2C33AA #642CAA #A32CAA
triadic
#642CAA #AA642C #2CAA64
tetradic
#642CAA #AA2C33 #72AA2C #2CAAA3
square
#642CAA #AA2C33 #72AA2C #2CAAA3
split-complementary
#642CAA #AAA32C #33AA2C
monochromatic
#2B1349 #471F79 #642CAA #8244CF #A375DB

Accessibility & contrast

On white

8.46
#642CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#642CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CAA
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CAA#FFFFFF#000000##FFFFFF
##642CAA1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#534C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642caa;
/* rgb */ color: rgb(100, 44, 170);
/* oklch */ color: oklch(44.3% 0.188 298.6);
Tailwind
colors: {
  custom: {
    50: '#976bc4',
    500: '#642caa',
    950: '#000000',
  },
}
SCSS
$custom: #642caa;
$custom-light: #976bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#642caa",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 266.667,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4426,
    "c": 0.18785,
    "h": 298.6
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#642CAA
secondary
#9EC36F
accent
#E2469D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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