#642A96#642A96

#642A96 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.168 H 304.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#642A96
RGBrgb(100, 42, 150)
HSLhsl(272, 56%, 38%)
HSVhsv(272, 72%, 59%)
CMYKcmyk(33.3%, 72%, 0%, 41.2%)
CIE-LABlab(30.80, 46.20, -48.73)
CIE-LCHlch(30.80, 67.15, 313.47°)
OKLaboklab(42.4% 0.0958 -0.1385)
OKLCHoklch(42.4% 0.168 304.7)
XYZxyz(11.5873, 6.5673, 29.5054)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A96 #5C962A
analogous
#2E2A96 #642A96 #962A92
triadic
#642A96 #96642A #2A9664
tetradic
#642A96 #962E2A #5C962A #2A9296
square
#642A96 #962E2A #5C962A #2A9296
split-complementary
#642A96 #92962A #2A962E
monochromatic
#240F36 #441D66 #642A96 #8437C6 #A166D4

Accessibility & contrast

On white

9.08
#642A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#642A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A96
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A96#FFFFFF#000000##FFFFFF
##642A961.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#5B435D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642a96;
/* rgb */ color: rgb(100, 42, 150);
/* oklch */ color: oklch(42.4% 0.168 304.7);
Tailwind
colors: {
  custom: {
    50: '#9569b6',
    500: '#642a96',
    950: '#000000',
  },
}
SCSS
$custom: #642a96;
$custom-light: #9569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642a96",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 272.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42396,
    "c": 0.16845,
    "h": 304.7
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#642A96
secondary
#8BBA61
accent
#E0488E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642A96

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

Preview Lab → · Contrast checker → · Palette generator →

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