#642E9B#642E9B

#642E9B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.169 H 302.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#642E9B
RGBrgb(100, 46, 155)
HSLhsl(270, 54%, 39%)
HSVhsv(270, 70%, 61%)
CMYKcmyk(35.5%, 70.3%, 0%, 39.2%)
CIE-LABlab(31.87, 45.50, -50.04)
CIE-LCHlch(31.87, 67.63, 312.28°)
OKLaboklab(43.28% 0.0907 -0.1424)
OKLCHoklch(43.28% 0.169 302.5)
XYZxyz(12.1475, 7.0299, 31.7209)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E9B #659B2E
analogous
#2E2E9B #642E9B #9B2E9B
triadic
#642E9B #9B642E #2E9B64
tetradic
#642E9B #9B2E2E #659B2E #2E9B9B
square
#642E9B #9B2E2E #659B2E #2E9B9B
split-complementary
#642E9B #9B9B2E #2E9B2E
monochromatic
#27123D #46206C #642E9B #8240C6 #A16FD4

Accessibility & contrast

On white

8.73
#642E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#642E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E9B
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E9B#FFFFFF#000000##FFFFFF
##642E9B1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004B99
Tritanopia (blue-blind)
#594761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642e9b;
/* rgb */ color: rgb(100, 46, 155);
/* oklch */ color: oklch(43.3% 0.169 302.5);
Tailwind
colors: {
  custom: {
    50: '#956bb9',
    500: '#642e9b',
    950: '#000000',
  },
}
SCSS
$custom: #642e9b;
$custom-light: #956bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#642e9b",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 269.725,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.16887,
    "h": 302.5
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#642E9B
secondary
#93BC69
accent
#DE4A95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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