#642CA8#642CA8

#642CA8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.186 H 299.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#642CA8
RGBrgb(100, 44, 168)
HSLhsl(267, 58%, 42%)
HSVhsv(267, 74%, 66%)
CMYKcmyk(40.5%, 73.8%, 0%, 34.1%)
CIE-LABlab(32.56, 49.75, -56.78)
CIE-LCHlch(32.56, 75.49, 311.22°)
OKLaboklab(44.09% 0.0903 -0.1622)
OKLCHoklch(44.09% 0.186 299.1)
XYZxyz(13.2223, 7.3377, 37.7579)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CA8 #70A82C
analogous
#2C32A8 #642CA8 #A22CA8
triadic
#642CA8 #A8642C #2CA864
tetradic
#642CA8 #A82C32 #70A82C #2CA8A2
square
#642CA8 #A82C32 #70A82C #2CA8A2
split-complementary
#642CA8 #A8A22C #32A82C
monochromatic
#2A1347 #471F78 #642CA8 #8243CE #A274DB

Accessibility & contrast

On white

8.51
#642CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642CA8
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CA8#FFFFFF#000000##FFFFFF
##642CA81.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004BA6
Tritanopia (blue-blind)
#544B67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642ca8;
/* rgb */ color: rgb(100, 44, 168);
/* oklch */ color: oklch(44.1% 0.186 299.1);
Tailwind
colors: {
  custom: {
    50: '#966bc3',
    500: '#642ca8',
    950: '#000000',
  },
}
SCSS
$custom: #642ca8;
$custom-light: #966bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#642ca8",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 267.097,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44092,
    "c": 0.18567,
    "h": 299.1
  },
  "luminance": 0.07338
}

Semantic roles & 50–950 ramp

primary
#642CA8
secondary
#9CC26E
accent
#E2469B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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