#642CAB#642CAB

#642CAB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.189 H 298.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#642CAB
RGBrgb(100, 44, 171)
HSLhsl(266, 59%, 42%)
HSVhsv(266, 74%, 67%)
CMYKcmyk(41.5%, 74.3%, 0%, 32.9%)
CIE-LABlab(32.81, 50.51, -58.18)
CIE-LCHlch(32.81, 77.05, 310.97°)
OKLaboklab(44.35% 0.0897 -0.1663)
OKLCHoklch(44.35% 0.189 298.3)
XYZxyz(13.5050, 7.4508, 39.2468)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CAB #73AB2C
analogous
#2C33AB #642CAB #A42CAB
triadic
#642CAB #AB642C #2CAB64
tetradic
#642CAB #AB2C33 #73AB2C #2CABA4
square
#642CAB #AB2C33 #73AB2C #2CABA4
split-complementary
#642CAB #ABA42C #33AB2C
monochromatic
#2B134A #481F7A #642CAB #8245CF #A376DC

Accessibility & contrast

On white

8.43
#642CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#642CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CAB
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CAB#FFFFFF#000000##FFFFFF
##642CAB1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#524D69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642cab;
/* rgb */ color: rgb(100, 44, 171);
/* oklch */ color: oklch(44.3% 0.189 298.3);
Tailwind
colors: {
  custom: {
    50: '#976bc5',
    500: '#642cab',
    950: '#000000',
  },
}
SCSS
$custom: #642cab;
$custom-light: #976bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#642cab",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 266.457,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44345,
    "c": 0.18894,
    "h": 298.3
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #642CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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