#642E8E#642E8E

#642E8E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.154 H 306.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#642E8E
RGBrgb(100, 46, 142)
HSLhsl(274, 51%, 37%)
HSVhsv(274, 68%, 56%)
CMYKcmyk(29.6%, 67.6%, 0%, 44.3%)
CIE-LABlab(30.92, 42.27, -43.63)
CIE-LCHlch(30.92, 60.75, 314.10°)
OKLaboklab(42.29% 0.0924 -0.1236)
OKLCHoklch(42.29% 0.154 306.8)
XYZxyz(11.1140, 6.6164, 26.2775)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E8E #588E2E
analogous
#342E8E #642E8E #8E2E88
triadic
#642E8E #8E642E #2E8E64
tetradic
#642E8E #8E342E #588E2E #2E888E
square
#642E8E #8E342E #588E2E #2E888E
split-complementary
#642E8E #888E2E #2E8E34
monochromatic
#231032 #431F60 #642E8E #853DBC #A268CE

Accessibility & contrast

On white

9.04
#642E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#642E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E8E
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E8E#FFFFFF#000000##FFFFFF
##642E8E1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642e8e;
/* rgb */ color: rgb(100, 46, 142);
/* oklch */ color: oklch(42.3% 0.154 306.8);
Tailwind
colors: {
  custom: {
    50: '#946bb0',
    500: '#642e8e',
    950: '#000000',
  },
}
SCSS
$custom: #642e8e;
$custom-light: #946bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#642e8e",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 273.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42292,
    "c": 0.15427,
    "h": 306.8
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#642E8E
secondary
#87B563
accent
#DB4D8B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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