#642E8D#642E8D

#642E8D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.153 H 307.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#642E8D
RGBrgb(100, 46, 141)
HSLhsl(274, 51%, 37%)
HSVhsv(274, 67%, 55%)
CMYKcmyk(29.1%, 67.4%, 0%, 44.7%)
CIE-LABlab(30.85, 42.03, -43.13)
CIE-LCHlch(30.85, 60.22, 314.26°)
OKLaboklab(42.22% 0.0924 -0.1221)
OKLCHoklch(42.22% 0.153 307.1)
XYZxyz(11.0392, 6.5865, 25.8839)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E8D #578D2E
analogous
#352E8D #642E8D #8D2E87
triadic
#642E8D #8D642E #2E8D64
tetradic
#642E8D #8D352E #578D2E #2E878D
square
#642E8D #8D352E #578D2E #2E878D
split-complementary
#642E8D #878D2E #2E8D35
monochromatic
#231031 #431F5F #642E8D #853DBB #A268CE

Accessibility & contrast

On white

9.06
#642E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642E8D
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E8D#FFFFFF#000000##FFFFFF
##642E8D1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#19498B
Tritanopia (blue-blind)
#5D4259
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642e8d;
/* rgb */ color: rgb(100, 46, 141);
/* oklch */ color: oklch(42.2% 0.153 307.1);
Tailwind
colors: {
  custom: {
    50: '#946baf',
    500: '#642e8d',
    950: '#000000',
  },
}
SCSS
$custom: #642e8d;
$custom-light: #946baf;
$custom-dark: #000000;
JSON
{
  "hex": "#642e8d",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 274.105,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42219,
    "c": 0.15314,
    "h": 307.1
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#642E8D
secondary
#86B562
accent
#DA4E8A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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