#642D93#642D93

#642D93 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.161 H 305.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#642D93
RGBrgb(100, 45, 147)
HSLhsl(272, 53%, 38%)
HSVhsv(272, 69%, 58%)
CMYKcmyk(32%, 69.4%, 0%, 42.4%)
CIE-LABlab(31.10, 44.00, -46.41)
CIE-LCHlch(31.10, 63.96, 313.47°)
OKLaboklab(42.54% 0.093 -0.1317)
OKLCHoklch(42.54% 0.161 305.2)
XYZxyz(11.4592, 6.6928, 28.2862)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D93 #5C932D
analogous
#312D93 #642D93 #932D8F
triadic
#642D93 #93642D #2D9364
tetradic
#642D93 #93312D #5C932D #2D8F93
square
#642D93 #93312D #5C932D #2D8F93
split-complementary
#642D93 #8F932D #2D9331
monochromatic
#241035 #441F64 #642D93 #843BC2 #A169D1

Accessibility & contrast

On white

8.98
#642D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#642D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D93
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D93#FFFFFF#000000##FFFFFF
##642D931.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004896
Deuteranopia (green-blind)
#094991
Tritanopia (blue-blind)
#5C445C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642d93;
/* rgb */ color: rgb(100, 45, 147);
/* oklch */ color: oklch(42.5% 0.161 305.2);
Tailwind
colors: {
  custom: {
    50: '#946ab3',
    500: '#642d93',
    950: '#000000',
  },
}
SCSS
$custom: #642d93;
$custom-light: #946ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#642d93",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 272.353,
    "s": 53.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42536,
    "c": 0.16124,
    "h": 305.2
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#642D93
secondary
#8BB864
accent
#DD4B8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D93

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

Preview Lab → · Contrast checker → · Palette generator →

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