#642AC5#642AC5

#642AC5 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.219 H 292.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#642AC5
RGBrgb(100, 42, 197)
HSLhsl(262, 65%, 47%)
HSVhsv(262, 79%, 77%)
CMYKcmyk(49.2%, 78.7%, 0%, 22.7%)
CIE-LABlab(34.79, 58.05, -70.32)
CIE-LCHlch(34.79, 91.19, 309.54°)
OKLaboklab(46.43% 0.0843 -0.2019)
OKLCHoklch(46.43% 0.219 292.6)
XYZxyz(16.1587, 8.3959, 53.5817)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AC5 #8BC52A
analogous
#2A3DC5 #642AC5 #B22AC5
triadic
#642AC5 #C5642A #2AC564
tetradic
#642AC5 #C52A3D #8BC52A #2AC5B2
square
#642AC5 #C52A3D #8BC52A #2AC5B2
split-complementary
#642AC5 #C5B22A #3DC52A
monochromatic
#311460 #4A1F93 #642AC5 #8552DA #A985E5

Accessibility & contrast

On white

7.84
#642AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#642AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AC5
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AC5#FFFFFF#000000##FFFFFF
##642AC51.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#445678
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #642ac5;
/* rgb */ color: rgb(100, 42, 197);
/* oklch */ color: oklch(46.4% 0.219 292.6);
Tailwind
colors: {
  custom: {
    50: '#9a6bd8',
    500: '#642ac5',
    950: '#000000',
  },
}
SCSS
$custom: #642ac5;
$custom-light: #9a6bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#642ac5",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 262.452,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.2188,
    "h": 292.6
  },
  "luminance": 0.08396
}

Semantic roles & 50–950 ramp

primary
#642AC5
secondary
#B0CE7D
accent
#E840A9
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #642AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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