#642BB8#642BB8

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

Color values

HEX#642BB8
RGBrgb(100, 43, 184)
HSLhsl(264, 62%, 45%)
HSVhsv(264, 77%, 72%)
CMYKcmyk(45.7%, 76.6%, 0%, 27.8%)
CIE-LABlab(33.77, 54.29, -64.35)
CIE-LCHlch(33.77, 84.19, 310.15°)
OKLaboklab(45.36% 0.0873 -0.1844)
OKLCHoklch(45.36% 0.204 295.3)
XYZxyz(14.7688, 7.8974, 46.0843)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB8 #7FB82B
analogous
#2B39B8 #642BB8 #AB2BB8
triadic
#642BB8 #B8642B #2BB864
tetradic
#642BB8 #B82B39 #7FB82B #2BB8AB
square
#642BB8 #B82B39 #7FB82B #2BB8AB
split-complementary
#642BB8 #B8AB2B #39B82B
monochromatic
#2E1455 #491F86 #642BB8 #834BD5 #A57DE1

Accessibility & contrast

On white

8.14
#642BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#642BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BB8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB8#FFFFFF#000000##FFFFFF
##642BB81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#4C5170
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642bb8;
/* rgb */ color: rgb(100, 43, 184);
/* oklch */ color: oklch(45.4% 0.204 295.3);
Tailwind
colors: {
  custom: {
    50: '#986bce',
    500: '#642bb8',
    950: '#000000',
  },
}
SCSS
$custom: #642bb8;
$custom-light: #986bce;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb8",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 264.255,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45361,
    "c": 0.20404,
    "h": 295.3
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#642BB8
secondary
#A7C976
accent
#E543A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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