#642D98#642D98

#642D98 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.167 H 303.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#642D98
RGBrgb(100, 45, 152)
HSLhsl(271, 54%, 39%)
HSVhsv(271, 70%, 60%)
CMYKcmyk(34.2%, 70.4%, 0%, 40.4%)
CIE-LABlab(31.47, 45.24, -48.87)
CIE-LCHlch(31.47, 66.60, 312.79°)
OKLaboklab(42.92% 0.0923 -0.139)
OKLCHoklch(42.92% 0.167 303.6)
XYZxyz(11.8601, 6.8531, 30.3976)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D98 #61982D
analogous
#2E2D98 #642D98 #982D96
triadic
#642D98 #98642D #2D9864
tetradic
#642D98 #982E2D #61982D #2D9698
square
#642D98 #982E2D #61982D #2D9698
split-complementary
#642D98 #96982D #2D982E
monochromatic
#26113A #451F69 #642D98 #833DC5 #A16CD3

Accessibility & contrast

On white

8.86
#642D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#642D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D98
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D98#FFFFFF#000000##FFFFFF
##642D981.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#5A465F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642d98;
/* rgb */ color: rgb(100, 45, 152);
/* oklch */ color: oklch(42.9% 0.167 303.6);
Tailwind
colors: {
  custom: {
    50: '#956ab7',
    500: '#642d98',
    950: '#000000',
  },
}
SCSS
$custom: #642d98;
$custom-light: #956ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#642d98",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 270.841,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.1668,
    "h": 303.6
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#642D98
secondary
#8FBA66
accent
#DE4A92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D98

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

Preview Lab → · Contrast checker → · Palette generator →

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