#642AAF#642AAF

#642AAF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.195 H 297.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#642AAF
RGBrgb(100, 42, 175)
HSLhsl(266, 61%, 43%)
HSVhsv(266, 76%, 69%)
CMYKcmyk(42.9%, 76%, 0%, 31.4%)
CIE-LABlab(32.83, 52.43, -60.54)
CIE-LCHlch(32.83, 80.09, 310.90°)
OKLaboklab(44.46% 0.0905 -0.1732)
OKLCHoklch(44.46% 0.195 297.6)
XYZxyz(13.8193, 7.4601, 41.2610)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AAF #75AF2A
analogous
#2A33AF #642AAF #A62AAF
triadic
#642AAF #AF642A #2AAF64
tetradic
#642AAF #AF2A33 #75AF2A #2AAFA6
square
#642AAF #AF2A33 #75AF2A #2AAFA6
split-complementary
#642AAF #AFA62A #33AF2A
monochromatic
#2C124C #481E7E #642AAF #8244D2 #A375DE

Accessibility & contrast

On white

8.43
#642AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#642AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AAF
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AAF#FFFFFF#000000##FFFFFF
##642AAF1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#514D6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642aaf;
/* rgb */ color: rgb(100, 42, 175);
/* oklch */ color: oklch(44.5% 0.195 297.6);
Tailwind
colors: {
  custom: {
    50: '#976ac8',
    500: '#642aaf',
    950: '#000000',
  },
}
SCSS
$custom: #642aaf;
$custom-light: #976ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#642aaf",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 266.165,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44464,
    "c": 0.19544,
    "h": 297.6
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#642AAF
secondary
#A0C66F
accent
#E4439E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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