#642EAC#642EAC

#642EAC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.188 H 297.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#642EAC
RGBrgb(100, 46, 172)
HSLhsl(266, 58%, 43%)
HSVhsv(266, 73%, 67%)
CMYKcmyk(41.9%, 73.3%, 0%, 32.5%)
CIE-LABlab(33.23, 49.83, -58.10)
CIE-LCHlch(33.23, 76.55, 310.62°)
OKLaboklab(44.66% 0.0876 -0.1661)
OKLCHoklch(44.66% 0.188 297.8)
XYZxyz(13.6770, 7.6416, 39.7761)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EAC #76AC2E
analogous
#2E37AC #642EAC #A32EAC
triadic
#642EAC #AC642E #2EAC64
tetradic
#642EAC #AC2E37 #76AC2E #2EACA3
square
#642EAC #AC2E37 #76AC2E #2EACA3
split-complementary
#642EAC #ACA32E #37AC2E
monochromatic
#2C144B #48217C #642EAC #8249CE #A379DB

Accessibility & contrast

On white

8.31
#642EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642EAC
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EAC#FFFFFF#000000##FFFFFF
##642EAC1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#524E6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642eac;
/* rgb */ color: rgb(100, 46, 172);
/* oklch */ color: oklch(44.7% 0.188 297.8);
Tailwind
colors: {
  custom: {
    50: '#976cc6',
    500: '#642eac',
    950: '#000000',
  },
}
SCSS
$custom: #642eac;
$custom-light: #976cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#642eac",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 265.714,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44662,
    "c": 0.18778,
    "h": 297.8
  },
  "luminance": 0.07642
}

Semantic roles & 50–950 ramp

primary
#642EAC
secondary
#A1C372
accent
#E1479F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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