#642B8A#642B8A

#642B8A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.154 H 308.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#642B8A
RGBrgb(100, 43, 138)
HSLhsl(276, 52%, 35%)
HSVhsv(276, 69%, 54%)
CMYKcmyk(27.5%, 68.8%, 0%, 45.9%)
CIE-LABlab(30.09, 42.81, -42.49)
CIE-LCHlch(30.09, 60.32, 315.22°)
OKLaboklab(41.61% 0.0963 -0.1202)
OKLCHoklch(41.61% 0.154 308.7)
XYZxyz(10.7059, 6.2722, 24.6865)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B8A #518A2B
analogous
#342B8A #642B8A #8A2B80
triadic
#642B8A #8A642B #2B8A64
tetradic
#642B8A #8A342B #518A2B #2B808A
square
#642B8A #8A342B #518A2B #2B808A
split-complementary
#642B8A #808A2B #2B8A34
monochromatic
#200E2D #421C5B #642B8A #863AB9 #A361CE

Accessibility & contrast

On white

9.32
#642B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#642B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B8A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B8A#FFFFFF#000000##FFFFFF
##642B8A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#194888
Tritanopia (blue-blind)
#5E3F57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642b8a;
/* rgb */ color: rgb(100, 43, 138);
/* oklch */ color: oklch(41.6% 0.154 308.7);
Tailwind
colors: {
  custom: {
    50: '#9469ad',
    500: '#642b8a',
    950: '#000000',
  },
}
SCSS
$custom: #642b8a;
$custom-light: #9469ad;
$custom-dark: #000000;
JSON
{
  "hex": "#642b8a",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 276,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41607,
    "c": 0.15402,
    "h": 308.7
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#642B8A
secondary
#80B45D
accent
#DC4C85
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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