#642BB7#642BB7

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

Color values

HEX#642BB7
RGBrgb(100, 43, 183)
HSLhsl(264, 62%, 44%)
HSVhsv(264, 77%, 72%)
CMYKcmyk(45.4%, 76.5%, 0%, 28.2%)
CIE-LABlab(33.68, 54.03, -63.91)
CIE-LCHlch(33.68, 83.69, 310.21°)
OKLaboklab(45.27% 0.0875 -0.1831)
OKLCHoklch(45.27% 0.203 295.5)
XYZxyz(14.6644, 7.8556, 45.5342)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB7 #7EB72B
analogous
#2B38B7 #642BB7 #AA2BB7
triadic
#642BB7 #B7642B #2BB764
tetradic
#642BB7 #B72B38 #7EB72B #2BB7AA
square
#642BB7 #B72B38 #7EB72B #2BB7AA
split-complementary
#642BB7 #B7AA2B #38B72B
monochromatic
#2E1454 #491F85 #642BB7 #834BD5 #A57CE0

Accessibility & contrast

On white

8.17
#642BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642BB7
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB7#FFFFFF#000000##FFFFFF
##642BB71.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#4D5170
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642bb7;
/* rgb */ color: rgb(100, 43, 183);
/* oklch */ color: oklch(45.3% 0.203 295.5);
Tailwind
colors: {
  custom: {
    50: '#986bce',
    500: '#642bb7',
    950: '#000000',
  },
}
SCSS
$custom: #642bb7;
$custom-light: #986bce;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb7",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 264.429,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45272,
    "c": 0.20297,
    "h": 295.5
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#642BB7
secondary
#A7C975
accent
#E543A3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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