#642CA9#642CA9

#642CA9 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.187 H 298.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#642CA9
RGBrgb(100, 44, 169)
HSLhsl(267, 59%, 42%)
HSVhsv(267, 74%, 66%)
CMYKcmyk(40.8%, 74%, 0%, 33.7%)
CIE-LABlab(32.65, 50.00, -57.25)
CIE-LCHlch(32.65, 76.01, 311.14°)
OKLaboklab(44.18% 0.0901 -0.1636)
OKLCHoklch(44.18% 0.187 298.8)
XYZxyz(13.3158, 7.3751, 38.2504)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA9 #71A92C
analogous
#2C33A9 #642CA9 #A32CA9
triadic
#642CA9 #A9642C #2CA964
tetradic
#642CA9 #A92C33 #71A92C #2CA9A3
square
#642CA9 #A92C33 #71A92C #2CA9A3
split-complementary
#642CA9 #A9A32C #33A92C
monochromatic
#2B1348 #471F78 #642CA9 #8244CE #A274DB

Accessibility & contrast

On white

8.48
#642CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#642CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA9
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA9#FFFFFF#000000##FFFFFF
##642CA91.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#534C68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642ca9;
/* rgb */ color: rgb(100, 44, 169);
/* oklch */ color: oklch(44.2% 0.187 298.8);
Tailwind
colors: {
  custom: {
    50: '#966bc3',
    500: '#642ca9',
    950: '#000000',
  },
}
SCSS
$custom: #642ca9;
$custom-light: #966bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca9",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 266.88,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44176,
    "c": 0.18677,
    "h": 298.8
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#642CA9
secondary
#9DC36E
accent
#E2469C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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