#642BB3#642BB3

#642BB3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.199 H 296.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#642BB3
RGBrgb(100, 43, 179)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 76%, 70%)
CMYKcmyk(44.1%, 76%, 0%, 29.8%)
CIE-LABlab(33.33, 53.01, -62.10)
CIE-LCHlch(33.33, 81.65, 310.48°)
OKLaboklab(44.92% 0.0886 -0.1778)
OKLCHoklch(44.92% 0.199 296.5)
XYZxyz(14.2539, 7.6914, 43.3727)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB3 #7AB32B
analogous
#2B36B3 #642BB3 #A82BB3
triadic
#642BB3 #B3642B #2BB364
tetradic
#642BB3 #B32B36 #7AB32B #2BB3A8
square
#642BB3 #B32B36 #7AB32B #2BB3A8
split-complementary
#642BB3 #B3A82B #36B32B
monochromatic
#2D1350 #481F82 #642BB3 #8248D3 #A479DF

Accessibility & contrast

On white

8.27
#642BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#642BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BB3
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB3#FFFFFF#000000##FFFFFF
##642BB31.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#4F4F6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642bb3;
/* rgb */ color: rgb(100, 43, 179);
/* oklch */ color: oklch(44.9% 0.199 296.5);
Tailwind
colors: {
  custom: {
    50: '#986bcb',
    500: '#642bb3',
    950: '#000000',
  },
}
SCSS
$custom: #642bb3;
$custom-light: #986bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb3",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 265.147,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44921,
    "c": 0.19868,
    "h": 296.5
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#642BB3
secondary
#A4C773
accent
#E443A1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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