#642FA9#642FA9

#642FA9 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.183 H 298.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#642FA9
RGBrgb(100, 47, 169)
HSLhsl(266, 56%, 42%)
HSVhsv(266, 72%, 66%)
CMYKcmyk(40.8%, 72.2%, 0%, 33.7%)
CIE-LABlab(33.15, 48.58, -56.43)
CIE-LCHlch(33.15, 74.46, 310.73°)
OKLaboklab(44.53% 0.0872 -0.1612)
OKLCHoklch(44.53% 0.183 298.4)
XYZxyz(13.4316, 7.6067, 38.2890)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FA9 #74A92F
analogous
#2F37A9 #642FA9 #A12FA9
triadic
#642FA9 #A9642F #2FA964
tetradic
#642FA9 #A92F37 #74A92F #2FA9A1
square
#642FA9 #A92F37 #74A92F #2FA9A1
split-complementary
#642FA9 #A9A12F #37A92F
monochromatic
#2B1449 #482279 #642FA9 #8249CC #A379DA

Accessibility & contrast

On white

8.33
#642FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#642FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FA9
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FA9#FFFFFF#000000##FFFFFF
##642FA91.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#534D69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642fa9;
/* rgb */ color: rgb(100, 47, 169);
/* oklch */ color: oklch(44.5% 0.183 298.4);
Tailwind
colors: {
  custom: {
    50: '#966cc3',
    500: '#642fa9',
    950: '#000000',
  },
}
SCSS
$custom: #642fa9;
$custom-light: #966cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#642fa9",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 266.066,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44533,
    "c": 0.18328,
    "h": 298.4
  },
  "luminance": 0.07607
}

Semantic roles & 50–950 ramp

primary
#642FA9
secondary
#9FC272
accent
#E0489E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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