#642B97#642B97

#642B97 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.168 H 304.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#642B97
RGBrgb(100, 43, 151)
HSLhsl(272, 56%, 38%)
HSVhsv(272, 72%, 59%)
CMYKcmyk(33.8%, 71.5%, 0%, 40.8%)
CIE-LABlab(31.05, 45.96, -48.94)
CIE-LCHlch(31.05, 67.14, 313.20°)
OKLaboklab(42.6% 0.0946 -0.1392)
OKLCHoklch(42.6% 0.168 304.2)
XYZxyz(11.7040, 6.6715, 29.9433)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B97 #5E972B
analogous
#2E2B97 #642B97 #972B94
triadic
#642B97 #97642B #2B9764
tetradic
#642B97 #972E2B #5E972B #2B9497
square
#642B97 #972E2B #5E972B #2B9497
split-complementary
#642B97 #94972B #2B972E
monochromatic
#251038 #441D67 #642B97 #8439C7 #A168D4

Accessibility & contrast

On white

9.00
#642B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#642B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B97
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B97#FFFFFF#000000##FFFFFF
##642B971.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#5A445E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642b97;
/* rgb */ color: rgb(100, 43, 151);
/* oklch */ color: oklch(42.6% 0.168 304.2);
Tailwind
colors: {
  custom: {
    50: '#9569b6',
    500: '#642b97',
    950: '#000000',
  },
}
SCSS
$custom: #642b97;
$custom-light: #9569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642b97",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 271.667,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42595,
    "c": 0.16827,
    "h": 304.2
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#642B97
secondary
#8CBB63
accent
#DF4990
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642B97

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

Preview Lab → · Contrast checker → · Palette generator →

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