#642A9B#642A9B

#642A9B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.174 H 303.1°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#642A9B
RGBrgb(100, 42, 155)
HSLhsl(271, 57%, 39%)
HSVhsv(271, 73%, 61%)
CMYKcmyk(35.5%, 72.9%, 0%, 39.2%)
CIE-LABlab(31.19, 47.42, -51.16)
CIE-LCHlch(31.19, 69.76, 312.83°)
OKLaboklab(42.79% 0.0949 -0.1457)
OKLCHoklch(42.79% 0.174 303.1)
XYZxyz(11.9985, 6.7318, 31.6712)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A9B #619B2A
analogous
#2B2A9B #642A9B #9B2A99
triadic
#642A9B #9B642A #2A9B64
tetradic
#642A9B #9B2B2A #619B2A #2A999B
square
#642A9B #9B2B2A #619B2A #2A999B
split-complementary
#642A9B #999B2A #2A9B2B
monochromatic
#26103B #451D6B #642A9B #8339C9 #A169D6

Accessibility & contrast

On white

8.95
#642A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#642A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A9B
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A9B#FFFFFF#000000##FFFFFF
##642A9B1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#594560
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642a9b;
/* rgb */ color: rgb(100, 42, 155);
/* oklch */ color: oklch(42.8% 0.174 303.1);
Tailwind
colors: {
  custom: {
    50: '#9569b9',
    500: '#642a9b',
    950: '#000000',
  },
}
SCSS
$custom: #642a9b;
$custom-light: #9569b9;
$custom-dark: #000000;
JSON
{
  "hex": "#642a9b",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 270.796,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42793,
    "c": 0.17388,
    "h": 303.1
  },
  "luminance": 0.06732
}

Semantic roles & 50–950 ramp

primary
#642A9B
secondary
#8FBD64
accent
#E14792
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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