#642E9A#642E9A

#642E9A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.168 H 302.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#642E9A
RGBrgb(100, 46, 154)
HSLhsl(270, 54%, 39%)
HSVhsv(270, 70%, 60%)
CMYKcmyk(35.1%, 70.1%, 0%, 39.6%)
CIE-LABlab(31.80, 45.25, -49.56)
CIE-LCHlch(31.80, 67.11, 312.40°)
OKLaboklab(43.2% 0.0909 -0.141)
OKLCHoklch(43.2% 0.168 302.8)
XYZxyz(12.0639, 6.9964, 31.2805)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E9A #649A2E
analogous
#2E2E9A #642E9A #9A2E9A
triadic
#642E9A #9A642E #2E9A64
tetradic
#642E9A #9A2E2E #649A2E #2E9A9A
square
#642E9A #9A2E2E #649A2E #2E9A9A
split-complementary
#642E9A #9A9A2E #2E9A2E
monochromatic
#27123C #45206B #642E9A #833FC6 #A16FD4

Accessibility & contrast

On white

8.75
#642E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#642E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E9A
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E9A#FFFFFF#000000##FFFFFF
##642E9A1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#594760
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642e9a;
/* rgb */ color: rgb(100, 46, 154);
/* oklch */ color: oklch(43.2% 0.168 302.8);
Tailwind
colors: {
  custom: {
    50: '#956bb8',
    500: '#642e9a',
    950: '#000000',
  },
}
SCSS
$custom: #642e9a;
$custom-light: #956bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#642e9a",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 270,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43203,
    "c": 0.16774,
    "h": 302.8
  },
  "luminance": 0.06996
}

Semantic roles & 50–950 ramp

primary
#642E9A
secondary
#92BB69
accent
#DD4A94
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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