#642CB2#642CB2

#642CB2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.197 H 296.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#642CB2
RGBrgb(100, 44, 178)
HSLhsl(265, 60%, 44%)
HSVhsv(265, 75%, 70%)
CMYKcmyk(43.8%, 75.3%, 0%, 30.2%)
CIE-LABlab(33.40, 52.30, -61.39)
CIE-LCHlch(33.40, 80.65, 310.43°)
OKLaboklab(44.94% 0.088 -0.1757)
OKLCHoklch(44.94% 0.197 296.6)
XYZxyz(14.1900, 7.7247, 42.8542)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB2 #7AB22C
analogous
#2C37B2 #642CB2 #A72CB2
triadic
#642CB2 #B2642C #2CB264
tetradic
#642CB2 #B22C37 #7AB22C #2CB2A7
square
#642CB2 #B22C37 #7AB22C #2CB2A7
split-complementary
#642CB2 #B2A72C #37B22C
monochromatic
#2D1450 #482081 #642CB2 #8249D2 #A47ADE

Accessibility & contrast

On white

8.25
#642CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#642CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB2#FFFFFF#000000##FFFFFF
##642CB21.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#4F4F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642cb2;
/* rgb */ color: rgb(100, 44, 178);
/* oklch */ color: oklch(44.9% 0.197 296.6);
Tailwind
colors: {
  custom: {
    50: '#976bca',
    500: '#642cb2',
    950: '#000000',
  },
}
SCSS
$custom: #642cb2;
$custom-light: #976bca;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb2",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 265.075,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44944,
    "c": 0.19654,
    "h": 296.6
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#642CB2
secondary
#A4C673
accent
#E444A1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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