#642BA5#642BA5

#642BA5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.184 H 300.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#642BA5
RGBrgb(100, 43, 165)
HSLhsl(268, 59%, 41%)
HSVhsv(268, 74%, 65%)
CMYKcmyk(39.4%, 73.9%, 0%, 35.3%)
CIE-LABlab(32.15, 49.45, -55.64)
CIE-LCHlch(32.15, 74.44, 311.63°)
OKLaboklab(43.73% 0.0919 -0.1589)
OKLCHoklch(43.73% 0.184 300.1)
XYZxyz(12.9092, 7.1536, 36.2907)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BA5 #6CA52B
analogous
#2B2FA5 #642BA5 #A12BA5
triadic
#642BA5 #A5642B #2BA564
tetradic
#642BA5 #A52B2F #6CA52B #2BA5A1
square
#642BA5 #A52B2F #6CA52B #2BA5A1
split-complementary
#642BA5 #A5A12B #2FA52B
monochromatic
#291244 #471E74 #642BA5 #8240CD #A271DA

Accessibility & contrast

On white

8.64
#642BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#642BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BA5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BA5#FFFFFF#000000##FFFFFF
##642BA51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642ba5;
/* rgb */ color: rgb(100, 43, 165);
/* oklch */ color: oklch(43.7% 0.184 300.1);
Tailwind
colors: {
  custom: {
    50: '#966ac1',
    500: '#642ba5',
    950: '#000000',
  },
}
SCSS
$custom: #642ba5;
$custom-light: #966ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#642ba5",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 268.033,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43727,
    "c": 0.18355,
    "h": 300.1
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#642BA5
secondary
#99C16B
accent
#E24699
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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