#642BA9#642BA9

#642BA9 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.188 H 299.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#642BA9
RGBrgb(100, 43, 169)
HSLhsl(267, 59%, 42%)
HSVhsv(267, 75%, 66%)
CMYKcmyk(40.8%, 74.6%, 0%, 33.7%)
CIE-LABlab(32.48, 50.46, -57.51)
CIE-LCHlch(32.48, 76.51, 311.27°)
OKLaboklab(44.06% 0.091 -0.1644)
OKLCHoklch(44.06% 0.188 299)
XYZxyz(13.2790, 7.3015, 38.2381)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BA9 #70A92B
analogous
#2B31A9 #642BA9 #A32BA9
triadic
#642BA9 #A9642B #2BA964
tetradic
#642BA9 #A92B31 #70A92B #2BA9A3
square
#642BA9 #A92B31 #70A92B #2BA9A3
split-complementary
#642BA9 #A9A32B #31A92B
monochromatic
#2A1247 #471F78 #642BA9 #8242CF #A273DB

Accessibility & contrast

On white

8.54
#642BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#642BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BA9
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BA9#FFFFFF#000000##FFFFFF
##642BA91.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#534B68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ba9;
/* rgb */ color: rgb(100, 43, 169);
/* oklch */ color: oklch(44.1% 0.188 299.0);
Tailwind
colors: {
  custom: {
    50: '#966ac4',
    500: '#642ba9',
    950: '#000000',
  },
}
SCSS
$custom: #642ba9;
$custom-light: #966ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#642ba9",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 267.143,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44062,
    "c": 0.18789,
    "h": 299
  },
  "luminance": 0.07302
}

Semantic roles & 50–950 ramp

primary
#642BA9
secondary
#9CC36D
accent
#E3459B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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