#642A92#642A92

#642A92 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.164 H 306.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#642A92
RGBrgb(100, 42, 146)
HSLhsl(273, 55%, 37%)
HSVhsv(273, 71%, 57%)
CMYKcmyk(31.5%, 71.2%, 0%, 42.7%)
CIE-LABlab(30.50, 45.22, -46.77)
CIE-LCHlch(30.50, 65.06, 314.04°)
OKLaboklab(42.09% 0.0964 -0.1328)
OKLCHoklch(42.09% 0.164 306)
XYZxyz(11.2707, 6.4407, 27.8380)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A92 #58922A
analogous
#302A92 #642A92 #922A8C
triadic
#642A92 #92642A #2A9264
tetradic
#642A92 #92302A #58922A #2A8C92
square
#642A92 #92302A #58922A #2A8C92
split-complementary
#642A92 #8C922A #2A9230
monochromatic
#230F33 #431C62 #642A92 #8538C2 #A264D2

Accessibility & contrast

On white

9.18
#642A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A92
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A92#FFFFFF#000000##FFFFFF
##642A921.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#044890
Tritanopia (blue-blind)
#5C425B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642a92;
/* rgb */ color: rgb(100, 42, 146);
/* oklch */ color: oklch(42.1% 0.164 306.0);
Tailwind
colors: {
  custom: {
    50: '#9469b3',
    500: '#642a92',
    950: '#000000',
  },
}
SCSS
$custom: #642a92;
$custom-light: #9469b3;
$custom-dark: #000000;
JSON
{
  "hex": "#642a92",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 146
  },
  "hsl": {
    "h": 273.462,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42085,
    "c": 0.1641,
    "h": 306
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#642A92
secondary
#87B85F
accent
#DF498B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642A92

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

Preview Lab → · Contrast checker → · Palette generator →

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