#642AA8#642AA8

#642AA8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.188 H 299.4°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#642AA8
RGBrgb(100, 42, 168)
HSLhsl(268, 60%, 41%)
HSVhsv(268, 75%, 66%)
CMYKcmyk(40.5%, 75%, 0%, 34.1%)
CIE-LABlab(32.24, 50.67, -57.31)
CIE-LCHlch(32.24, 76.49, 311.48°)
OKLaboklab(43.86% 0.0922 -0.1637)
OKLCHoklch(43.86% 0.188 299.4)
XYZxyz(13.1496, 7.1922, 37.7336)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AA8 #6EA82A
analogous
#2A2FA8 #642AA8 #A32AA8
triadic
#642AA8 #A8642A #2AA864
tetradic
#642AA8 #A82A2F #6EA82A #2AA8A3
square
#642AA8 #A82A2F #6EA82A #2AA8A3
split-complementary
#642AA8 #A8A32A #2FA82A
monochromatic
#2A1246 #471E77 #642AA8 #8240CF #A271DB

Accessibility & contrast

On white

8.61
#642AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#642AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AA8
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AA8#FFFFFF#000000##FFFFFF
##642AA81.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004BA6
Tritanopia (blue-blind)
#544A67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642aa8;
/* rgb */ color: rgb(100, 42, 168);
/* oklch */ color: oklch(43.9% 0.188 299.4);
Tailwind
colors: {
  custom: {
    50: '#9669c3',
    500: '#642aa8',
    950: '#000000',
  },
}
SCSS
$custom: #642aa8;
$custom-light: #9669c3;
$custom-dark: #000000;
JSON
{
  "hex": "#642aa8",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 267.619,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.18792,
    "h": 299.4
  },
  "luminance": 0.07192
}

Semantic roles & 50–950 ramp

primary
#642AA8
secondary
#9AC36B
accent
#E3459A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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