#642CB7#642CB7

#642CB7 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.202 H 295.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#642CB7
RGBrgb(100, 44, 183)
HSLhsl(264, 61%, 45%)
HSVhsv(264, 76%, 72%)
CMYKcmyk(45.4%, 76%, 0%, 28.2%)
CIE-LABlab(33.84, 53.59, -63.65)
CIE-LCHlch(33.84, 83.21, 310.09°)
OKLaboklab(45.38% 0.0867 -0.1824)
OKLCHoklch(45.38% 0.202 295.4)
XYZxyz(14.7012, 7.9292, 45.5465)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB7 #7FB72C
analogous
#2C39B7 #642CB7 #AA2CB7
triadic
#642CB7 #B7642C #2CB764
tetradic
#642CB7 #B72C39 #7FB72C #2CB7AA
square
#642CB7 #B72C39 #7FB72C #2CB7AA
split-complementary
#642CB7 #B7AA2C #39B72C
monochromatic
#2E1454 #492086 #642CB7 #834CD4 #A57EE0

Accessibility & contrast

On white

8.12
#642CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#642CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB7
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB7#FFFFFF#000000##FFFFFF
##642CB71.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#4D5270
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642cb7;
/* rgb */ color: rgb(100, 44, 183);
/* oklch */ color: oklch(45.4% 0.202 295.4);
Tailwind
colors: {
  custom: {
    50: '#986bce',
    500: '#642cb7',
    950: '#000000',
  },
}
SCSS
$custom: #642cb7;
$custom-light: #986bce;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb7",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 264.173,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4538,
    "c": 0.20195,
    "h": 295.4
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#642CB7
secondary
#A7C876
accent
#E443A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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