#642AAB#642AAB

#642AAB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.191 H 298.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#642AAB
RGBrgb(100, 42, 171)
HSLhsl(267, 61%, 42%)
HSVhsv(267, 75%, 67%)
CMYKcmyk(41.5%, 75.4%, 0%, 32.9%)
CIE-LABlab(32.49, 51.42, -58.70)
CIE-LCHlch(32.49, 78.04, 311.22°)
OKLaboklab(44.12% 0.0915 -0.1678)
OKLCHoklch(44.12% 0.191 298.6)
XYZxyz(13.4323, 7.3053, 39.2226)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AAB #71AB2A
analogous
#2A31AB #642AAB #A52AAB
triadic
#642AAB #AB642A #2AAB64
tetradic
#642AAB #AB2A31 #71AB2A #2AABA5
square
#642AAB #AB2A31 #71AB2A #2AABA5
split-complementary
#642AAB #ABA52A #31AB2A
monochromatic
#2B1249 #471E7A #642AAB #8242D1 #A273DD

Accessibility & contrast

On white

8.53
#642AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#642AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AAB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AAB#FFFFFF#000000##FFFFFF
##642AAB1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#524C69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642aab;
/* rgb */ color: rgb(100, 42, 171);
/* oklch */ color: oklch(44.1% 0.191 298.6);
Tailwind
colors: {
  custom: {
    50: '#976ac5',
    500: '#642aab',
    950: '#000000',
  },
}
SCSS
$custom: #642aab;
$custom-light: #976ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#642aab",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 266.977,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4412,
    "c": 0.19114,
    "h": 298.6
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#642AAB
secondary
#9DC46D
accent
#E4449C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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