#642D96#642D96

#642D96 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.165 H 304.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#642D96
RGBrgb(100, 45, 150)
HSLhsl(271, 54%, 38%)
HSVhsv(271, 70%, 59%)
CMYKcmyk(33.3%, 70%, 0%, 41.2%)
CIE-LABlab(31.32, 44.74, -47.89)
CIE-LCHlch(31.32, 65.54, 313.05°)
OKLaboklab(42.77% 0.0926 -0.1361)
OKLCHoklch(42.77% 0.165 304.2)
XYZxyz(11.6977, 6.7881, 29.5422)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D96 #5F962D
analogous
#302D96 #642D96 #962D93
triadic
#642D96 #96642D #2D9664
tetradic
#642D96 #96302D #5F962D #2D9396
square
#642D96 #96302D #5F962D #2D9396
split-complementary
#642D96 #93962D #2D9630
monochromatic
#251138 #451F67 #642D96 #833CC4 #A16BD3

Accessibility & contrast

On white

8.91
#642D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#642D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D96
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D96#FFFFFF#000000##FFFFFF
##642D961.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004A94
Tritanopia (blue-blind)
#5B455E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642d96;
/* rgb */ color: rgb(100, 45, 150);
/* oklch */ color: oklch(42.8% 0.165 304.2);
Tailwind
colors: {
  custom: {
    50: '#946ab6',
    500: '#642d96',
    950: '#000000',
  },
}
SCSS
$custom: #642d96;
$custom-light: #946ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#642d96",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 271.429,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.16458,
    "h": 304.2
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#642D96
secondary
#8DB965
accent
#DD4B90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D96

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

Preview Lab → · Contrast checker → · Palette generator →

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