#642EA9#642EA9

#642EA9 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.184 H 298.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#642EA9
RGBrgb(100, 46, 169)
HSLhsl(266, 57%, 42%)
HSVhsv(266, 73%, 66%)
CMYKcmyk(40.8%, 72.8%, 0%, 33.7%)
CIE-LABlab(32.98, 49.06, -56.70)
CIE-LCHlch(32.98, 74.98, 310.87°)
OKLaboklab(44.41% 0.0882 -0.162)
OKLCHoklch(44.41% 0.184 298.6)
XYZxyz(13.3921, 7.5277, 38.2758)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA9 #73A92E
analogous
#2E36A9 #642EA9 #A12EA9
triadic
#642EA9 #A9642E #2EA964
tetradic
#642EA9 #A92E36 #73A92E #2EA9A1
square
#642EA9 #A92E36 #73A92E #2EA9A1
split-complementary
#642EA9 #A9A12E #36A92E
monochromatic
#2B1449 #482179 #642EA9 #8247CD #A377DA

Accessibility & contrast

On white

8.38
#642EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#642EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EA9
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA9#FFFFFF#000000##FFFFFF
##642EA91.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#534D69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642ea9;
/* rgb */ color: rgb(100, 46, 169);
/* oklch */ color: oklch(44.4% 0.184 298.6);
Tailwind
colors: {
  custom: {
    50: '#966cc3',
    500: '#642ea9',
    950: '#000000',
  },
}
SCSS
$custom: #642ea9;
$custom-light: #966cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea9",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 266.341,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44412,
    "c": 0.18445,
    "h": 298.6
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

primary
#642EA9
secondary
#9EC271
accent
#E0479D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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