#642BB1#642BB1

#642BB1 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.197 H 297.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#642BB1
RGBrgb(100, 43, 177)
HSLhsl(266, 61%, 43%)
HSVhsv(266, 76%, 69%)
CMYKcmyk(43.5%, 75.7%, 0%, 30.6%)
CIE-LABlab(33.16, 52.50, -61.19)
CIE-LCHlch(33.16, 80.63, 310.63°)
OKLaboklab(44.75% 0.0891 -0.1752)
OKLCHoklch(44.75% 0.197 297)
XYZxyz(14.0531, 7.6111, 42.3151)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB1 #78B12B
analogous
#2B35B1 #642BB1 #A72BB1
triadic
#642BB1 #B1642B #2BB164
tetradic
#642BB1 #B12B35 #78B12B #2BB1A7
square
#642BB1 #B12B35 #78B12B #2BB1A7
split-complementary
#642BB1 #B1A72B #35B12B
monochromatic
#2C134F #481F80 #642BB1 #8247D2 #A478DE

Accessibility & contrast

On white

8.33
#642BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#642BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BB1
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB1#FFFFFF#000000##FFFFFF
##642BB11.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004CAE
Tritanopia (blue-blind)
#504F6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642bb1;
/* rgb */ color: rgb(100, 43, 177);
/* oklch */ color: oklch(44.7% 0.197 297.0);
Tailwind
colors: {
  custom: {
    50: '#976ac9',
    500: '#642bb1',
    950: '#000000',
  },
}
SCSS
$custom: #642bb1;
$custom-light: #976ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb1",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 265.522,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44746,
    "c": 0.19653,
    "h": 297
  },
  "luminance": 0.07611
}

Semantic roles & 50–950 ramp

primary
#642BB1
secondary
#A2C672
accent
#E444A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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