#642E88#642E88

#642E88 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.147 H 309.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#642E88
RGBrgb(100, 46, 136)
HSLhsl(276, 49%, 36%)
HSVhsv(276, 66%, 53%)
CMYKcmyk(26.5%, 66.2%, 0%, 46.7%)
CIE-LABlab(30.50, 40.82, -40.59)
CIE-LCHlch(30.50, 57.56, 315.16°)
OKLaboklab(41.86% 0.0928 -0.1146)
OKLCHoklch(41.86% 0.148 309)
XYZxyz(10.6756, 6.4411, 23.9686)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E88 #52882E
analogous
#372E88 #642E88 #882E7F
triadic
#642E88 #88642E #2E8864
tetradic
#642E88 #88372E #52882E #2E7F88
square
#642E88 #88372E #52882E #2E7F88
split-complementary
#642E88 #7F882E #2E8837
monochromatic
#210F2D #421F5A #642E88 #863DB6 #A265CB

Accessibility & contrast

On white

9.18
#642E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E88
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E88#FFFFFF#000000##FFFFFF
##642E881.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#204986
Tritanopia (blue-blind)
#5F4057
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642e88;
/* rgb */ color: rgb(100, 46, 136);
/* oklch */ color: oklch(41.9% 0.147 309.0);
Tailwind
colors: {
  custom: {
    50: '#936aab',
    500: '#642e88',
    950: '#000000',
  },
}
SCSS
$custom: #642e88;
$custom-light: #936aab;
$custom-dark: #000000;
JSON
{
  "hex": "#642e88",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 276,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41858,
    "c": 0.1475,
    "h": 309
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#642E88
secondary
#81B260
accent
#D94F86
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642E88

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

Preview Lab → · Contrast checker → · Palette generator →

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