#642D9C#642D9C

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

Color values

HEX#642D9C
RGBrgb(100, 45, 156)
HSLhsl(270, 55%, 39%)
HSVhsv(270, 71%, 61%)
CMYKcmyk(35.9%, 71.2%, 0%, 38.8%)
CIE-LABlab(31.78, 46.24, -50.81)
CIE-LCHlch(31.78, 68.70, 312.30°)
OKLaboklab(43.24% 0.0916 -0.1447)
OKLCHoklch(43.24% 0.171 302.4)
XYZxyz(12.1932, 6.9864, 32.1522)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D9C #659C2D
analogous
#2D2D9C #642D9C #9C2D9C
triadic
#642D9C #9C642D #2D9C64
tetradic
#642D9C #9C2D2D #659C2D #2D9C9C
square
#642D9C #9C2D2D #659C2D #2D9C9C
split-complementary
#642D9C #9C9C2D #2D9C2D
monochromatic
#27123D #461F6D #642D9C #823FC8 #A16ED5

Accessibility & contrast

On white

8.76
#642D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642D9C
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D9C#FFFFFF#000000##FFFFFF
##642D9C1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#584761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642d9c;
/* rgb */ color: rgb(100, 45, 156);
/* oklch */ color: oklch(43.2% 0.171 302.4);
Tailwind
colors: {
  custom: {
    50: '#956bba',
    500: '#642d9c',
    950: '#000000',
  },
}
SCSS
$custom: #642d9c;
$custom-light: #956bba;
$custom-dark: #000000;
JSON
{
  "hex": "#642d9c",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 269.73,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43235,
    "c": 0.17125,
    "h": 302.4
  },
  "luminance": 0.06986
}

Semantic roles & 50–950 ramp

primary
#642D9C
secondary
#93BC68
accent
#DF4995
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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