#643A9B#643A9B

#643A9B is a dark, vivid violet. Relative luminance 0.081; OKLCH L 45.0% C 0.152 H 300.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#643A9B
RGBrgb(100, 58, 155)
HSLhsl(266, 46%, 42%)
HSVhsv(266, 63%, 61%)
CMYKcmyk(35.5%, 62.6%, 0%, 39.2%)
CIE-LABlab(34.19, 39.15, -46.29)
CIE-LCHlch(34.19, 60.63, 310.22°)
OKLaboklab(44.95% 0.0768 -0.1314)
OKLCHoklch(44.95% 0.152 300.3)
XYZxyz(12.6835, 8.1019, 31.8996)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#643A9B #719B3A
analogous
#3A419B #643A9B #953A9B
triadic
#643A9B #9B643A #3A9B64
tetradic
#643A9B #9B3A41 #719B3A #3A9B95
square
#643A9B #9B3A41 #719B3A #3A9B95
split-complementary
#643A9B #9B953A #419B3A
monochromatic
#2B1942 #47296E #643A9B #8253BF #A280CF

Accessibility & contrast

On white

8.01
#643A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#643A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #643A9B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##643A9B#FFFFFF#000000##FFFFFF
##643A9B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#175099
Tritanopia (blue-blind)
#584F65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #643a9b;
/* rgb */ color: rgb(100, 58, 155);
/* oklch */ color: oklch(45.0% 0.152 300.3);
Tailwind
colors: {
  custom: {
    50: '#9472b9',
    500: '#643a9b',
    950: '#000000',
  },
}
SCSS
$custom: #643a9b;
$custom-light: #9472b9;
$custom-dark: #000000;
JSON
{
  "hex": "#643a9b",
  "rgb": {
    "r": 100,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 265.979,
    "s": 45.54,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44952,
    "c": 0.15222,
    "h": 300.3
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#643A9B
secondary
#9DB978
accent
#D5539D
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80

Preview Lab

Preview with #643A9B

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

Preview Lab → · Contrast checker → · Palette generator →

#643A9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva