#642A93#642A93

#642A93 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.165 H 305.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#642A93
RGBrgb(100, 42, 147)
HSLhsl(273, 56%, 37%)
HSVhsv(273, 71%, 58%)
CMYKcmyk(32%, 71.4%, 0%, 42.4%)
CIE-LABlab(30.57, 45.46, -47.26)
CIE-LCHlch(30.57, 65.58, 313.89°)
OKLaboklab(42.16% 0.0963 -0.1342)
OKLCHoklch(42.16% 0.165 305.7)
XYZxyz(11.3488, 6.4719, 28.2494)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A93 #59932A
analogous
#302A93 #642A93 #932A8E
triadic
#642A93 #93642A #2A9364
tetradic
#642A93 #93302A #59932A #2A8E93
square
#642A93 #93302A #59932A #2A8E93
split-complementary
#642A93 #8E932A #2A9330
monochromatic
#230F34 #441C63 #642A93 #8438C3 #A165D3

Accessibility & contrast

On white

9.15
#642A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642A93
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A93#FFFFFF#000000##FFFFFF
##642A931.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642a93;
/* rgb */ color: rgb(100, 42, 147);
/* oklch */ color: oklch(42.2% 0.165 305.7);
Tailwind
colors: {
  custom: {
    50: '#9469b3',
    500: '#642a93',
    950: '#000000',
  },
}
SCSS
$custom: #642a93;
$custom-light: #9469b3;
$custom-dark: #000000;
JSON
{
  "hex": "#642a93",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 273.143,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42162,
    "c": 0.16519,
    "h": 305.7
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#642A93
secondary
#88B960
accent
#DF498C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642A93

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

Preview Lab → · Contrast checker → · Palette generator →

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