#642CA7#642CA7

#642CA7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.185 H 299.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#642CA7
RGBrgb(100, 44, 167)
HSLhsl(267, 58%, 41%)
HSVhsv(267, 74%, 65%)
CMYKcmyk(40.1%, 73.7%, 0%, 34.5%)
CIE-LABlab(32.48, 49.50, -56.31)
CIE-LCHlch(32.48, 74.97, 311.31°)
OKLaboklab(44.01% 0.0906 -0.1608)
OKLCHoklch(44.01% 0.185 299.4)
XYZxyz(13.1295, 7.3006, 37.2691)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA7 #6FA72C
analogous
#2C32A7 #642CA7 #A22CA7
triadic
#642CA7 #A7642C #2CA764
tetradic
#642CA7 #A72C32 #6FA72C #2CA7A2
square
#642CA7 #A72C32 #6FA72C #2CA7A2
split-complementary
#642CA7 #A7A22C #32A72C
monochromatic
#2A1246 #471F77 #642CA7 #8243CD #A273DA

Accessibility & contrast

On white

8.54
#642CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#642CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA7
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA7#FFFFFF#000000##FFFFFF
##642CA71.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#544B67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ca7;
/* rgb */ color: rgb(100, 44, 167);
/* oklch */ color: oklch(44.0% 0.185 299.4);
Tailwind
colors: {
  custom: {
    50: '#966ac2',
    500: '#642ca7',
    950: '#000000',
  },
}
SCSS
$custom: #642ca7;
$custom-light: #966ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca7",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 267.317,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44009,
    "c": 0.18458,
    "h": 299.4
  },
  "luminance": 0.07301
}

Semantic roles & 50–950 ramp

primary
#642CA7
secondary
#9BC26D
accent
#E2469B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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