#642C91#642C91

#642C91 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.160 H 306.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#642C91
RGBrgb(100, 44, 145)
HSLhsl(273, 53%, 37%)
HSVhsv(273, 70%, 57%)
CMYKcmyk(31%, 69.7%, 0%, 43.1%)
CIE-LABlab(30.77, 44.01, -45.71)
CIE-LCHlch(30.77, 63.45, 313.91°)
OKLaboklab(42.26% 0.0944 -0.1297)
OKLCHoklch(42.26% 0.16 306)
XYZxyz(11.2659, 6.5551, 27.4543)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C91 #59912C
analogous
#312C91 #642C91 #912C8C
triadic
#642C91 #91642C #2C9164
tetradic
#642C91 #91312C #59912C #2C8C91
square
#642C91 #91312C #59912C #2C8C91
split-complementary
#642C91 #8C912C #2C9131
monochromatic
#231033 #441E62 #642C91 #843AC0 #A167D1

Accessibility & contrast

On white

9.09
#642C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642C91
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C91#FFFFFF#000000##FFFFFF
##642C911.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#0D498F
Tritanopia (blue-blind)
#5C425B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642c91;
/* rgb */ color: rgb(100, 44, 145);
/* oklch */ color: oklch(42.3% 0.160 306.0);
Tailwind
colors: {
  custom: {
    50: '#946ab2',
    500: '#642c91',
    950: '#000000',
  },
}
SCSS
$custom: #642c91;
$custom-light: #946ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#642c91",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 273.267,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42257,
    "c": 0.16036,
    "h": 306
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#642C91
secondary
#88B762
accent
#DD4B8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642C91

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

Preview Lab → · Contrast checker → · Palette generator →

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