#642FA6#642FA6

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

Color values

HEX#642FA6
RGBrgb(100, 47, 166)
HSLhsl(267, 56%, 42%)
HSVhsv(267, 72%, 65%)
CMYKcmyk(39.8%, 71.7%, 0%, 34.9%)
CIE-LABlab(32.91, 47.81, -55.02)
CIE-LCHlch(32.91, 72.89, 310.99°)
OKLaboklab(44.29% 0.0878 -0.157)
OKLCHoklch(44.29% 0.18 299.2)
XYZxyz(13.1532, 7.4954, 36.8228)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FA6 #71A62F
analogous
#2F35A6 #642FA6 #A02FA6
triadic
#642FA6 #A6642F #2FA664
tetradic
#642FA6 #A62F35 #71A62F #2FA6A0
square
#642FA6 #A62F35 #71A62F #2FA6A0
split-complementary
#642FA6 #A6A02F #35A62F
monochromatic
#2B1447 #472176 #642FA6 #8247CB #A277D8

Accessibility & contrast

On white

8.40
#642FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#642FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FA6
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FA6#FFFFFF#000000##FFFFFF
##642FA61.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#544C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642fa6;
/* rgb */ color: rgb(100, 47, 166);
/* oklch */ color: oklch(44.3% 0.180 299.2);
Tailwind
colors: {
  custom: {
    50: '#966cc1',
    500: '#642fa6',
    950: '#000000',
  },
}
SCSS
$custom: #642fa6;
$custom-light: #966cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#642fa6",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 266.723,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44287,
    "c": 0.17993,
    "h": 299.2
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#642FA6
secondary
#9DC170
accent
#DF499C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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