#642BC2#642BC2

#642BC2 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.215 H 293.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#642BC2
RGBrgb(100, 43, 194)
HSLhsl(263, 64%, 46%)
HSVhsv(263, 78%, 76%)
CMYKcmyk(48.5%, 77.8%, 0%, 23.9%)
CIE-LABlab(34.66, 56.86, -68.78)
CIE-LCHlch(34.66, 89.24, 309.58°)
OKLaboklab(46.26% 0.0844 -0.1974)
OKLCHoklch(46.26% 0.215 293.2)
XYZxyz(15.8543, 8.3316, 51.8013)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BC2 #89C22B
analogous
#2B3EC2 #642BC2 #B02BC2
triadic
#642BC2 #C2642B #2BC264
tetradic
#642BC2 #C22B3E #89C22B #2BC2B0
square
#642BC2 #C22B3E #89C22B #2BC2B0
split-complementary
#642BC2 #C2B02B #3EC22B
monochromatic
#30155E #4A2090 #642BC2 #8552D9 #A884E4

Accessibility & contrast

On white

7.88
#642BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#642BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BC2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BC2#FFFFFF#000000##FFFFFF
##642BC21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#465676
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #642bc2;
/* rgb */ color: rgb(100, 43, 194);
/* oklch */ color: oklch(46.3% 0.215 293.2);
Tailwind
colors: {
  custom: {
    50: '#996bd6',
    500: '#642bc2',
    950: '#000000',
  },
}
SCSS
$custom: #642bc2;
$custom-light: #996bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#642bc2",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 262.649,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4626,
    "c": 0.21472,
    "h": 293.2
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#642BC2
secondary
#AECD7C
accent
#E741A8
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #642BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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