#642496#642496

#642496 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.176 H 305.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#642496
RGBrgb(100, 36, 150)
HSLhsl(274, 61%, 36%)
HSVhsv(274, 76%, 59%)
CMYKcmyk(33.3%, 76%, 0%, 41.2%)
CIE-LABlab(29.85, 48.90, -50.28)
CIE-LCHlch(29.85, 70.14, 314.20°)
OKLaboklab(41.72% 0.1019 -0.1431)
OKLCHoklch(41.72% 0.176 305.5)
XYZxyz(11.3902, 6.1732, 29.4397)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642496 #569624
analogous
#2B2496 #642496 #96248F
triadic
#642496 #966424 #249664
tetradic
#642496 #962B24 #569624 #248F96
square
#642496 #962B24 #569624 #248F96
split-complementary
#642496 #8F9624 #24962B
monochromatic
#220C33 #431865 #642496 #8530C7 #A25CD8

Accessibility & contrast

On white

9.40
#642496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#642496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642496
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642496#FFFFFF#000000##FFFFFF
##6424961.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#5B405B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642496;
/* rgb */ color: rgb(100, 36, 150);
/* oklch */ color: oklch(41.7% 0.176 305.5);
Tailwind
colors: {
  custom: {
    50: '#9566b6',
    500: '#642496',
    950: '#000000',
  },
}
SCSS
$custom: #642496;
$custom-light: #9566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642496",
  "rgb": {
    "r": 100,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 273.684,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41719,
    "c": 0.17563,
    "h": 305.5
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#642496
secondary
#85BD59
accent
#E4438A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642496

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

Preview Lab → · Contrast checker → · Palette generator →

#642496 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva