#642AAC#642AAC

#642AAC is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.2% C 0.192 H 298.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#642AAC
RGBrgb(100, 42, 172)
HSLhsl(267, 61%, 42%)
HSVhsv(267, 76%, 67%)
CMYKcmyk(41.9%, 75.6%, 0%, 32.5%)
CIE-LABlab(32.58, 51.67, -59.16)
CIE-LCHlch(32.58, 78.55, 311.14°)
OKLaboklab(44.21% 0.0912 -0.1692)
OKLCHoklch(44.21% 0.192 298.3)
XYZxyz(13.5280, 7.3436, 39.7265)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AAC #72AC2A
analogous
#2A31AC #642AAC #A52AAC
triadic
#642AAC #AC642A #2AAC64
tetradic
#642AAC #AC2A31 #72AC2A #2AACA5
square
#642AAC #AC2A31 #72AC2A #2AACA5
split-complementary
#642AAC #ACA52A #31AC2A
monochromatic
#2B124A #471E7B #642AAC #8242D1 #A373DD

Accessibility & contrast

On white

8.51
#642AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#642AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AAC
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AAC#FFFFFF#000000##FFFFFF
##642AAC1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#524C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642aac;
/* rgb */ color: rgb(100, 42, 172);
/* oklch */ color: oklch(44.2% 0.192 298.3);
Tailwind
colors: {
  custom: {
    50: '#976ac6',
    500: '#642aac',
    950: '#000000',
  },
}
SCSS
$custom: #642aac;
$custom-light: #976ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#642aac",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 266.769,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44205,
    "c": 0.19222,
    "h": 298.3
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

primary
#642AAC
secondary
#9EC46D
accent
#E4449D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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