#642CAF#642CAF

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

Color values

HEX#642CAF
RGBrgb(100, 44, 175)
HSLhsl(266, 60%, 43%)
HSVhsv(266, 75%, 69%)
CMYKcmyk(42.9%, 74.9%, 0%, 31.4%)
CIE-LABlab(33.15, 51.53, -60.02)
CIE-LCHlch(33.15, 79.11, 310.65°)
OKLaboklab(44.69% 0.0887 -0.1717)
OKLCHoklch(44.69% 0.193 297.3)
XYZxyz(13.8921, 7.6056, 41.2852)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CAF #77AF2C
analogous
#2C35AF #642CAF #A52CAF
triadic
#642CAF #AF642C #2CAF64
tetradic
#642CAF #AF2C35 #77AF2C #2CAFA5
square
#642CAF #AF2C35 #77AF2C #2CAFA5
split-complementary
#642CAF #AFA52C #35AF2C
monochromatic
#2C134D #48207E #642CAF #8247D1 #A378DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642CAF#FFFFFF#000000##FFFFFF
##642CAF1.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)
#004EB3
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#514E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642caf;
/* rgb */ color: rgb(100, 44, 175);
/* oklch */ color: oklch(44.7% 0.193 297.3);
Tailwind
colors: {
  custom: {
    50: '#976bc8',
    500: '#642caf',
    950: '#000000',
  },
}
SCSS
$custom: #642caf;
$custom-light: #976bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#642caf",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 265.649,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44685,
    "c": 0.19329,
    "h": 297.3
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#642CAF
secondary
#A1C572
accent
#E3459F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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