#642E86#642E86

#642E86 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.145 H 309.8°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#642E86
RGBrgb(100, 46, 134)
HSLhsl(277, 49%, 35%)
HSVhsv(277, 66%, 53%)
CMYKcmyk(25.4%, 65.7%, 0%, 47.5%)
CIE-LABlab(30.36, 40.34, -39.57)
CIE-LCHlch(30.36, 56.50, 315.55°)
OKLaboklab(41.72% 0.0929 -0.1116)
OKLCHoklch(41.72% 0.145 309.8)
XYZxyz(10.5348, 6.3847, 23.2270)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E86 #50862E
analogous
#382E86 #642E86 #862E7C
triadic
#642E86 #86642E #2E8664
tetradic
#642E86 #86382E #50862E #2E7C86
square
#642E86 #86382E #50862E #2E7C86
split-complementary
#642E86 #7C862E #2E8638
monochromatic
#200F2B #421E58 #642E86 #863EB4 #A364CA

Accessibility & contrast

On white

9.22
#642E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E86
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E86#FFFFFF#000000##FFFFFF
##642E861.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#224884
Tritanopia (blue-blind)
#5F4055
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642e86;
/* rgb */ color: rgb(100, 46, 134);
/* oklch */ color: oklch(41.7% 0.145 309.8);
Tailwind
colors: {
  custom: {
    50: '#936aaa',
    500: '#642e86',
    950: '#000000',
  },
}
SCSS
$custom: #642e86;
$custom-light: #936aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#642e86",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 276.818,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41716,
    "c": 0.14525,
    "h": 309.8
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#642E86
secondary
#7FB15F
accent
#D84F84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642E86

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

Preview Lab → · Contrast checker → · Palette generator →

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