#642B8D#642B8D

#642B8D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.157 H 307.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#642B8D
RGBrgb(100, 43, 141)
HSLhsl(275, 53%, 36%)
HSVhsv(275, 70%, 55%)
CMYKcmyk(29.1%, 69.5%, 0%, 44.7%)
CIE-LABlab(30.30, 43.53, -44.00)
CIE-LCHlch(30.30, 61.89, 314.69°)
OKLaboklab(41.83% 0.096 -0.1246)
OKLCHoklch(41.83% 0.157 307.6)
XYZxyz(10.9261, 6.3603, 25.8462)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B8D #548D2B
analogous
#332B8D #642B8D #8D2B85
triadic
#642B8D #8D642B #2B8D64
tetradic
#642B8D #8D332B #548D2B #2B858D
square
#642B8D #8D332B #548D2B #2B858D
split-complementary
#642B8D #858D2B #2B8D33
monochromatic
#210E2F #431D5E #642B8D #8539BC #A263CF

Accessibility & contrast

On white

9.24
#642B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B8D
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B8D#FFFFFF#000000##FFFFFF
##642B8D1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#14488B
Tritanopia (blue-blind)
#5D4058
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642b8d;
/* rgb */ color: rgb(100, 43, 141);
/* oklch */ color: oklch(41.8% 0.157 307.6);
Tailwind
colors: {
  custom: {
    50: '#9469af',
    500: '#642b8d',
    950: '#000000',
  },
}
SCSS
$custom: #642b8d;
$custom-light: #9469af;
$custom-dark: #000000;
JSON
{
  "hex": "#642b8d",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 274.898,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41829,
    "c": 0.15731,
    "h": 307.6
  },
  "luminance": 0.0636
}

Semantic roles & 50–950 ramp

primary
#642B8D
secondary
#83B65E
accent
#DD4B88
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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