#642BB0#642BB0

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

Color values

HEX#642BB0
RGBrgb(100, 43, 176)
HSLhsl(266, 61%, 43%)
HSVhsv(266, 76%, 69%)
CMYKcmyk(43.2%, 75.6%, 0%, 31%)
CIE-LABlab(33.07, 52.24, -60.74)
CIE-LCHlch(33.07, 80.11, 310.70°)
OKLaboklab(44.66% 0.0894 -0.1738)
OKLCHoklch(44.66% 0.195 297.2)
XYZxyz(13.9538, 7.5714, 41.7921)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB0 #77B02B
analogous
#2B35B0 #642BB0 #A62BB0
triadic
#642BB0 #B0642B #2BB064
tetradic
#642BB0 #B02B35 #77B02B #2BB0A6
square
#642BB0 #B02B35 #77B02B #2BB0A6
split-complementary
#642BB0 #B0A62B #35B02B
monochromatic
#2C134E #481F7F #642BB0 #8246D2 #A378DE

Accessibility & contrast

On white

8.35
#642BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#642BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BB0
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB0#FFFFFF#000000##FFFFFF
##642BB01.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#504E6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642bb0;
/* rgb */ color: rgb(100, 43, 176);
/* oklch */ color: oklch(44.7% 0.195 297.2);
Tailwind
colors: {
  custom: {
    50: '#976ac9',
    500: '#642bb0',
    950: '#000000',
  },
}
SCSS
$custom: #642bb0;
$custom-light: #976ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb0",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 265.714,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4466,
    "c": 0.19545,
    "h": 297.2
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#642BB0
secondary
#A1C671
accent
#E4449F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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