#642FA4#642FA4

#642FA4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.178 H 299.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#642FA4
RGBrgb(100, 47, 164)
HSLhsl(267, 55%, 41%)
HSVhsv(267, 71%, 64%)
CMYKcmyk(39%, 71.3%, 0%, 35.7%)
CIE-LABlab(32.75, 47.29, -54.07)
CIE-LCHlch(32.75, 71.84, 311.18°)
OKLaboklab(44.12% 0.0882 -0.1543)
OKLCHoklch(44.12% 0.178 299.8)
XYZxyz(12.9712, 7.4226, 35.8641)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FA4 #6FA42F
analogous
#2F35A4 #642FA4 #9F2FA4
triadic
#642FA4 #A4642F #2FA464
tetradic
#642FA4 #A42F35 #6FA42F #2FA49F
square
#642FA4 #A42F35 #6FA42F #2FA49F
split-complementary
#642FA4 #A49F2F #35A42F
monochromatic
#2A1445 #472174 #642FA4 #8246CA #A276D8

Accessibility & contrast

On white

8.45
#642FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#642FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FA4
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FA4#FFFFFF#000000##FFFFFF
##642FA41.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#554B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642fa4;
/* rgb */ color: rgb(100, 47, 164);
/* oklch */ color: oklch(44.1% 0.178 299.8);
Tailwind
colors: {
  custom: {
    50: '#966cc0',
    500: '#642fa4',
    950: '#000000',
  },
}
SCSS
$custom: #642fa4;
$custom-light: #966cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#642fa4",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 267.179,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44124,
    "c": 0.17768,
    "h": 299.8
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#642FA4
secondary
#9BC06F
accent
#DF499B
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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