#642BB6#642BB6

#642BB6 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.202 H 295.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#642BB6
RGBrgb(100, 43, 182)
HSLhsl(265, 62%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(45.1%, 76.4%, 0%, 28.6%)
CIE-LABlab(33.59, 53.78, -63.46)
CIE-LCHlch(33.59, 83.18, 310.28°)
OKLaboklab(45.18% 0.0878 -0.1818)
OKLCHoklch(45.18% 0.202 295.8)
XYZxyz(14.5606, 7.8141, 44.9880)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB6 #7DB62B
analogous
#2B38B6 #642BB6 #AA2BB6
triadic
#642BB6 #B6642B #2BB664
tetradic
#642BB6 #B62B38 #7DB62B #2BB6AA
square
#642BB6 #B62B38 #7DB62B #2BB6AA
split-complementary
#642BB6 #B6AA2B #38B62B
monochromatic
#2E1453 #491F84 #642BB6 #834AD4 #A57BE0

Accessibility & contrast

On white

8.19
#642BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#642BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BB6
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB6#FFFFFF#000000##FFFFFF
##642BB61.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#4D516F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642bb6;
/* rgb */ color: rgb(100, 43, 182);
/* oklch */ color: oklch(45.2% 0.202 295.8);
Tailwind
colors: {
  custom: {
    50: '#986bcd',
    500: '#642bb6',
    950: '#000000',
  },
}
SCSS
$custom: #642bb6;
$custom-light: #986bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb6",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 264.604,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45184,
    "c": 0.2019,
    "h": 295.8
  },
  "luminance": 0.07814
}

Semantic roles & 50–950 ramp

primary
#642BB6
secondary
#A6C875
accent
#E543A2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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