#642F8E#642F8E

#642F8E is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.153 H 306.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#642F8E
RGBrgb(100, 47, 142)
HSLhsl(273, 50%, 37%)
HSVhsv(273, 67%, 56%)
CMYKcmyk(29.6%, 66.9%, 0%, 44.3%)
CIE-LABlab(31.10, 41.76, -43.33)
CIE-LCHlch(31.10, 60.18, 313.94°)
OKLaboklab(42.43% 0.0911 -0.1227)
OKLCHoklch(42.43% 0.153 306.6)
XYZxyz(11.1535, 6.6955, 26.2907)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F8E #598E2F
analogous
#352F8E #642F8E #8E2F89
triadic
#642F8E #8E642F #2F8E64
tetradic
#642F8E #8E352F #598E2F #2F898E
square
#642F8E #8E352F #598E2F #2F898E
split-complementary
#642F8E #898E2F #2F8E35
monochromatic
#231132 #442060 #642F8E #843EBC #A16ACE

Accessibility & contrast

On white

8.98
#642F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#642F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F8E
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F8E#FFFFFF#000000##FFFFFF
##642F8E1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#5D435A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642f8e;
/* rgb */ color: rgb(100, 47, 142);
/* oklch */ color: oklch(42.4% 0.153 306.6);
Tailwind
colors: {
  custom: {
    50: '#946bb0',
    500: '#642f8e',
    950: '#000000',
  },
}
SCSS
$custom: #642f8e;
$custom-light: #946bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#642f8e",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 273.474,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42426,
    "c": 0.15284,
    "h": 306.6
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#642F8E
secondary
#88B564
accent
#DA4E8C
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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