#642899#642899

#642899 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.174 H 304.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#642899
RGBrgb(100, 40, 153)
HSLhsl(272, 59%, 38%)
HSVhsv(272, 74%, 60%)
CMYKcmyk(34.6%, 73.9%, 0%, 40%)
CIE-LABlab(30.70, 47.86, -50.72)
CIE-LCHlch(30.70, 69.74, 313.33°)
OKLaboklab(42.4% 0.0973 -0.1444)
OKLCHoklch(42.4% 0.174 304)
XYZxyz(11.7628, 6.5268, 30.7709)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642899 #5D9928
analogous
#2B2899 #642899 #992896
triadic
#642899 #996428 #289964
tetradic
#642899 #992B28 #5D9928 #289699
square
#642899 #992B28 #5D9928 #289699
split-complementary
#642899 #969928 #28992B
monochromatic
#250F38 #441B68 #642899 #8435CA #A165D7

Accessibility & contrast

On white

9.11
#642899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#642899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642899
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642899#FFFFFF#000000##FFFFFF
##6428991.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#5A435E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642899;
/* rgb */ color: rgb(100, 40, 153);
/* oklch */ color: oklch(42.4% 0.174 304.0);
Tailwind
colors: {
  custom: {
    50: '#9568b8',
    500: '#642899',
    950: '#000000',
  },
}
SCSS
$custom: #642899;
$custom-light: #9568b8;
$custom-dark: #000000;
JSON
{
  "hex": "#642899",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 271.858,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.424,
    "c": 0.17413,
    "h": 304
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#642899
secondary
#8CBD60
accent
#E2468F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642899

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

Preview Lab → · Contrast checker → · Palette generator →

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