#642AB9#642AB9

#642AB9 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.206 H 295.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#642AB9
RGBrgb(100, 42, 185)
HSLhsl(264, 63%, 45%)
HSVhsv(264, 77%, 73%)
CMYKcmyk(45.9%, 77.3%, 0%, 27.5%)
CIE-LABlab(33.71, 54.98, -65.05)
CIE-LCHlch(33.71, 85.17, 310.20°)
OKLaboklab(45.34% 0.0878 -0.1865)
OKLCHoklch(45.34% 0.206 295.2)
XYZxyz(14.8381, 7.8676, 46.6264)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AB9 #7FB92A
analogous
#2A37B9 #642AB9 #AC2AB9
triadic
#642AB9 #B9642A #2AB964
tetradic
#642AB9 #B92A37 #7FB92A #2AB9AC
square
#642AB9 #B92A37 #7FB92A #2AB9AC
split-complementary
#642AB9 #B9AC2A #37B92A
monochromatic
#2E1355 #491F87 #642AB9 #834AD6 #A57CE1

Accessibility & contrast

On white

8.16
#642AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#642AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AB9
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AB9#FFFFFF#000000##FFFFFF
##642AB91.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#4C5171
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642ab9;
/* rgb */ color: rgb(100, 42, 185);
/* oklch */ color: oklch(45.3% 0.206 295.2);
Tailwind
colors: {
  custom: {
    50: '#986acf',
    500: '#642ab9',
    950: '#000000',
  },
}
SCSS
$custom: #642ab9;
$custom-light: #986acf;
$custom-dark: #000000;
JSON
{
  "hex": "#642ab9",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 264.336,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45344,
    "c": 0.2061,
    "h": 295.2
  },
  "luminance": 0.07868
}

Semantic roles & 50–950 ramp

primary
#642AB9
secondary
#A7CA75
accent
#E642A3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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