#642FA7#642FA7

#642FA7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.181 H 298.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#642FA7
RGBrgb(100, 47, 167)
HSLhsl(267, 56%, 42%)
HSVhsv(267, 72%, 65%)
CMYKcmyk(40.1%, 71.9%, 0%, 34.5%)
CIE-LABlab(32.99, 48.07, -55.49)
CIE-LCHlch(32.99, 73.41, 310.90°)
OKLaboklab(44.37% 0.0876 -0.1584)
OKLCHoklch(44.37% 0.181 298.9)
XYZxyz(13.2453, 7.5322, 37.3077)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FA7 #72A72F
analogous
#2F36A7 #642FA7 #A02FA7
triadic
#642FA7 #A7642F #2FA764
tetradic
#642FA7 #A72F36 #72A72F #2FA7A0
square
#642FA7 #A72F36 #72A72F #2FA7A0
split-complementary
#642FA7 #A7A02F #36A72F
monochromatic
#2B1447 #472277 #642FA7 #8248CB #A378D9

Accessibility & contrast

On white

8.38
#642FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#642FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FA7
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FA7#FFFFFF#000000##FFFFFF
##642FA71.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#544D68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642fa7;
/* rgb */ color: rgb(100, 47, 167);
/* oklch */ color: oklch(44.4% 0.181 298.9);
Tailwind
colors: {
  custom: {
    50: '#966cc2',
    500: '#642fa7',
    950: '#000000',
  },
}
SCSS
$custom: #642fa7;
$custom-light: #966cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#642fa7",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 266.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.18105,
    "h": 298.9
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#642FA7
secondary
#9EC171
accent
#DF489D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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