#643D9B#643D9B

#643D9B is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.4% C 0.148 H 299.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#643D9B
RGBrgb(100, 61, 155)
HSLhsl(265, 44%, 42%)
HSVhsv(265, 61%, 61%)
CMYKcmyk(35.5%, 60.6%, 0%, 39.2%)
CIE-LABlab(34.83, 37.46, -45.27)
CIE-LCHlch(34.83, 58.76, 309.61°)
OKLaboklab(45.41% 0.073 -0.1284)
OKLCHoklch(45.41% 0.148 299.6)
XYZxyz(12.8392, 8.4133, 31.9515)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#643D9B #749B3D
analogous
#3D459B #643D9B #933D9B
triadic
#643D9B #9B643D #3D9B64
tetradic
#643D9B #9B3D45 #749B3D #3D9B93
square
#643D9B #9B3D45 #749B3D #3D9B93
split-complementary
#643D9B #9B933D #459B3D
monochromatic
#2B1A43 #482C6F #643D9B #8258BD #A384CF

Accessibility & contrast

On white

7.83
#643D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#643D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #643D9B
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##643D9B#FFFFFF#000000##FFFFFF
##643D9B1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05529E
Deuteranopia (green-blind)
#1D5199
Tritanopia (blue-blind)
#585166
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #643d9b;
/* rgb */ color: rgb(100, 61, 155);
/* oklch */ color: oklch(45.4% 0.148 299.6);
Tailwind
colors: {
  custom: {
    50: '#9474b9',
    500: '#643d9b',
    950: '#000000',
  },
}
SCSS
$custom: #643d9b;
$custom-light: #9474b9;
$custom-dark: #000000;
JSON
{
  "hex": "#643d9b",
  "rgb": {
    "r": 100,
    "g": 61,
    "b": 155
  },
  "hsl": {
    "h": 264.894,
    "s": 43.519,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45414,
    "c": 0.14774,
    "h": 299.6
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#643D9B
secondary
#9FB97B
accent
#D3559F
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #643D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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