#642CA0#642CA0

#642CA0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.177 H 301.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#642CA0
RGBrgb(100, 44, 160)
HSLhsl(269, 57%, 40%)
HSVhsv(269, 73%, 63%)
CMYKcmyk(37.5%, 72.5%, 0%, 37.3%)
CIE-LABlab(31.92, 47.73, -53.01)
CIE-LCHlch(31.92, 71.33, 312.00°)
OKLaboklab(43.43% 0.092 -0.1511)
OKLCHoklch(43.43% 0.177 301.3)
XYZxyz(12.4998, 7.0487, 33.9529)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA0 #68A02C
analogous
#2C2EA0 #642CA0 #9E2CA0
triadic
#642CA0 #A0642C #2CA064
tetradic
#642CA0 #A02C2E #68A02C #2CA09E
square
#642CA0 #A02C2E #68A02C #2CA09E
split-complementary
#642CA0 #A09E2C #2EA02C
monochromatic
#281240 #461F70 #642CA0 #823FCA #A16FD7

Accessibility & contrast

On white

8.71
#642CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#642CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CA0
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA0#FFFFFF#000000##FFFFFF
##642CA01.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#574863
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642ca0;
/* rgb */ color: rgb(100, 44, 160);
/* oklch */ color: oklch(43.4% 0.177 301.3);
Tailwind
colors: {
  custom: {
    50: '#956abd',
    500: '#642ca0',
    950: '#000000',
  },
}
SCSS
$custom: #642ca0;
$custom-light: #956abd;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca0",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 268.966,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.43433,
    "c": 0.17691,
    "h": 301.3
  },
  "luminance": 0.07049
}

Semantic roles & 50–950 ramp

primary
#642CA0
secondary
#95BF69
accent
#E04897
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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