#642FAA#642FAA

#642FAA is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.184 H 298.2°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#642FAA
RGBrgb(100, 47, 170)
HSLhsl(266, 57%, 43%)
HSVhsv(266, 72%, 67%)
CMYKcmyk(41.2%, 72.4%, 0%, 33.3%)
CIE-LABlab(33.23, 48.84, -56.89)
CIE-LCHlch(33.23, 74.98, 310.64°)
OKLaboklab(44.62% 0.087 -0.1626)
OKLCHoklch(44.62% 0.184 298.2)
XYZxyz(13.5259, 7.6444, 38.7853)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FAA #75AA2F
analogous
#2F37AA #642FAA #A22FAA
triadic
#642FAA #AA642F #2FAA64
tetradic
#642FAA #AA2F37 #75AA2F #2FAAA2
square
#642FAA #AA2F37 #75AA2F #2FAAA2
split-complementary
#642FAA #AAA22F #37AA2F
monochromatic
#2C144A #48227A #642FAA #8249CD #A379DA

Accessibility & contrast

On white

8.30
#642FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#642FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FAA
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FAA#FFFFFF#000000##FFFFFF
##642FAA1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#534E69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642faa;
/* rgb */ color: rgb(100, 47, 170);
/* oklch */ color: oklch(44.6% 0.184 298.2);
Tailwind
colors: {
  custom: {
    50: '#966cc4',
    500: '#642faa',
    950: '#000000',
  },
}
SCSS
$custom: #642faa;
$custom-light: #966cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#642faa",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 265.854,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44616,
    "c": 0.18439,
    "h": 298.2
  },
  "luminance": 0.07645
}

Semantic roles & 50–950 ramp

primary
#642FAA
secondary
#A0C272
accent
#E0489E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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