#642F96#642F96

#642F96 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.162 H 303.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#642F96
RGBrgb(100, 47, 150)
HSLhsl(271, 52%, 39%)
HSVhsv(271, 69%, 59%)
CMYKcmyk(33.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(31.68, 43.74, -47.31)
CIE-LCHlch(31.68, 64.43, 312.76°)
OKLaboklab(43.02% 0.0903 -0.1344)
OKLCHoklch(43.02% 0.162 303.9)
XYZxyz(11.7758, 6.9444, 29.5683)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F96 #61962F
analogous
#312F96 #642F96 #962F94
triadic
#642F96 #96642F #2F9664
tetradic
#642F96 #96312F #61962F #2F9496
square
#642F96 #96312F #61962F #2F9496
split-complementary
#642F96 #94962F #2F9631
monochromatic
#261239 #452067 #642F96 #833FC3 #A16ED2

Accessibility & contrast

On white

8.79
#642F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#642F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F96
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F96#FFFFFF#000000##FFFFFF
##642F961.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#064A94
Tritanopia (blue-blind)
#5A465E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642f96;
/* rgb */ color: rgb(100, 47, 150);
/* oklch */ color: oklch(43.0% 0.162 303.9);
Tailwind
colors: {
  custom: {
    50: '#946bb6',
    500: '#642f96',
    950: '#000000',
  },
}
SCSS
$custom: #642f96;
$custom-light: #946bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#642f96",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 270.874,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43023,
    "c": 0.16191,
    "h": 303.9
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#642F96
secondary
#8FB968
accent
#DC4C92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F96

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

Preview Lab → · Contrast checker → · Palette generator →

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