#642BA6#642BA6

#642BA6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.185 H 299.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#642BA6
RGBrgb(100, 43, 166)
HSLhsl(268, 59%, 41%)
HSVhsv(268, 74%, 65%)
CMYKcmyk(39.8%, 74.1%, 0%, 34.9%)
CIE-LABlab(32.24, 49.71, -56.11)
CIE-LCHlch(32.24, 74.96, 311.54°)
OKLaboklab(43.81% 0.0917 -0.1602)
OKLCHoklch(43.81% 0.185 299.8)
XYZxyz(13.0006, 7.1901, 36.7719)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BA6 #6DA62B
analogous
#2B2FA6 #642BA6 #A12BA6
triadic
#642BA6 #A6642B #2BA664
tetradic
#642BA6 #A62B2F #6DA62B #2BA6A1
square
#642BA6 #A62B2F #6DA62B #2BA6A1
split-complementary
#642BA6 #A6A12B #2FA62B
monochromatic
#291245 #471E75 #642BA6 #8241CE #A271DA

Accessibility & contrast

On white

8.61
#642BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#642BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BA6
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BA6#FFFFFF#000000##FFFFFF
##642BA61.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004BA4
Tritanopia (blue-blind)
#554A66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ba6;
/* rgb */ color: rgb(100, 43, 166);
/* oklch */ color: oklch(43.8% 0.185 299.8);
Tailwind
colors: {
  custom: {
    50: '#966ac1',
    500: '#642ba6',
    950: '#000000',
  },
}
SCSS
$custom: #642ba6;
$custom-light: #966ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#642ba6",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 267.805,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4381,
    "c": 0.18463,
    "h": 299.8
  },
  "luminance": 0.0719
}

Semantic roles & 50–950 ramp

primary
#642BA6
secondary
#9AC16B
accent
#E2469A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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