#642689#642689

#642689 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.160 H 309.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#642689
RGBrgb(100, 38, 137)
HSLhsl(278, 57%, 34%)
HSVhsv(278, 72%, 54%)
CMYKcmyk(27%, 72.3%, 0%, 46.3%)
CIE-LABlab(29.16, 44.96, -43.36)
CIE-LCHlch(29.16, 62.46, 316.04°)
OKLaboklab(40.92% 0.1021 -0.1227)
OKLCHoklch(40.92% 0.16 309.8)
XYZxyz(10.4631, 5.9019, 24.2501)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642689 #4B8926
analogous
#332689 #642689 #89267D
triadic
#642689 #896426 #268964
tetradic
#642689 #893326 #4B8926 #267D89
square
#642689 #893326 #4B8926 #267D89
split-complementary
#642689 #7D8926 #268933
monochromatic
#1E0B29 #411959 #642689 #8733B9 #A459D1

Accessibility & contrast

On white

9.63
#642689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#642689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642689
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642689#FFFFFF#000000##FFFFFF
##6426891.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#134687
Tritanopia (blue-blind)
#5F3C55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #642689;
/* rgb */ color: rgb(100, 38, 137);
/* oklch */ color: oklch(40.9% 0.160 309.8);
Tailwind
colors: {
  custom: {
    50: '#9466ac',
    500: '#642689',
    950: '#000000',
  },
}
SCSS
$custom: #642689;
$custom-light: #9466ac;
$custom-dark: #000000;
JSON
{
  "hex": "#642689",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 277.576,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40923,
    "c": 0.15966,
    "h": 309.8
  },
  "luminance": 0.05902
}

Semantic roles & 50–950 ramp

primary
#642689
secondary
#79B655
accent
#E04881
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642689

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

Preview Lab → · Contrast checker → · Palette generator →

#642689 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva