#642B85#642B85

#642B85 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.149 H 310.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#642B85
RGBrgb(100, 43, 133)
HSLhsl(278, 51%, 35%)
HSVhsv(278, 68%, 52%)
CMYKcmyk(24.8%, 67.7%, 0%, 47.8%)
CIE-LABlab(29.74, 41.63, -39.94)
CIE-LCHlch(29.74, 57.69, 316.18°)
OKLaboklab(41.25% 0.0967 -0.1127)
OKLCHoklch(41.25% 0.149 310.6)
XYZxyz(10.3522, 6.1308, 22.8238)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B85 #4C852B
analogous
#372B85 #642B85 #852B79
triadic
#642B85 #85642B #2B8564
tetradic
#642B85 #85372B #4C852B #2B7985
square
#642B85 #85372B #4C852B #2B7985
split-complementary
#642B85 #79852B #2B8537
monochromatic
#1E0D29 #411C57 #642B85 #873AB3 #A45FCB

Accessibility & contrast

On white

9.43
#642B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#642B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B85
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B85#FFFFFF#000000##FFFFFF
##642B851.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#204783
Tritanopia (blue-blind)
#603D54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642b85;
/* rgb */ color: rgb(100, 43, 133);
/* oklch */ color: oklch(41.2% 0.149 310.6);
Tailwind
colors: {
  custom: {
    50: '#9369a9',
    500: '#642b85',
    950: '#000000',
  },
}
SCSS
$custom: #642b85;
$custom-light: #9369a9;
$custom-dark: #000000;
JSON
{
  "hex": "#642b85",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 278,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41245,
    "c": 0.14853,
    "h": 310.6
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#642B85
secondary
#7AB15B
accent
#DB4D81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642B85

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

Preview Lab → · Contrast checker → · Palette generator →

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