#642DAF#642DAF

#642DAF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.192 H 297.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#642DAF
RGBrgb(100, 45, 175)
HSLhsl(265, 59%, 43%)
HSVhsv(265, 74%, 69%)
CMYKcmyk(42.9%, 74.3%, 0%, 31.4%)
CIE-LABlab(33.31, 51.08, -59.76)
CIE-LCHlch(33.31, 78.61, 310.52°)
OKLaboklab(44.8% 0.0878 -0.171)
OKLCHoklch(44.8% 0.192 297.2)
XYZxyz(13.9298, 7.6810, 41.2978)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DAF #78AF2D
analogous
#2D37AF #642DAF #A52DAF
triadic
#642DAF #AF642D #2DAF64
tetradic
#642DAF #AF2D37 #78AF2D #2DAFA5
square
#642DAF #AF2D37 #78AF2D #2DAFA5
split-complementary
#642DAF #AFA52D #37AF2D
monochromatic
#2C144E #48207E #642DAF #8249D0 #A47ADD

Accessibility & contrast

On white

8.28
#642DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642DAF
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DAF#FFFFFF#000000##FFFFFF
##642DAF1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#514F6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642daf;
/* rgb */ color: rgb(100, 45, 175);
/* oklch */ color: oklch(44.8% 0.192 297.2);
Tailwind
colors: {
  custom: {
    50: '#976bc8',
    500: '#642daf',
    950: '#000000',
  },
}
SCSS
$custom: #642daf;
$custom-light: #976bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#642daf",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 265.385,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44799,
    "c": 0.1922,
    "h": 297.2
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#642DAF
secondary
#A2C573
accent
#E246A0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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