#642D8E#642D8E

#642D8E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.156 H 306.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#642D8E
RGBrgb(100, 45, 142)
HSLhsl(274, 52%, 37%)
HSVhsv(274, 68%, 56%)
CMYKcmyk(29.6%, 68.3%, 0%, 44.3%)
CIE-LABlab(30.73, 42.78, -43.92)
CIE-LCHlch(30.73, 61.31, 314.24°)
OKLaboklab(42.16% 0.0935 -0.1244)
OKLCHoklch(42.16% 0.156 306.9)
XYZxyz(11.0754, 6.5392, 26.2647)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D8E #578E2D
analogous
#342D8E #642D8E #8E2D88
triadic
#642D8E #8E642D #2D8E64
tetradic
#642D8E #8E342D #578E2D #2D888E
square
#642D8E #8E342D #578E2D #2D888E
split-complementary
#642D8E #888E2D #2D8E34
monochromatic
#231031 #431E60 #642D8E #853CBC #A267CF

Accessibility & contrast

On white

9.10
#642D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#642D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D8E
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D8E#FFFFFF#000000##FFFFFF
##642D8E1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#15498C
Tritanopia (blue-blind)
#5D4259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642d8e;
/* rgb */ color: rgb(100, 45, 142);
/* oklch */ color: oklch(42.2% 0.156 306.9);
Tailwind
colors: {
  custom: {
    50: '#946ab0',
    500: '#642d8e',
    950: '#000000',
  },
}
SCSS
$custom: #642d8e;
$custom-light: #946ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#642d8e",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 274.021,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42161,
    "c": 0.15566,
    "h": 306.9
  },
  "luminance": 0.06539
}

Semantic roles & 50–950 ramp

primary
#642D8E
secondary
#86B561
accent
#DB4C8A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #642D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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