#642699#642699

#642699 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.176 H 304.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#642699
RGBrgb(100, 38, 153)
HSLhsl(272, 60%, 37%)
HSVhsv(272, 75%, 60%)
CMYKcmyk(34.6%, 75.2%, 0%, 40%)
CIE-LABlab(30.39, 48.75, -51.23)
CIE-LCHlch(30.39, 70.72, 313.58°)
OKLaboklab(42.18% 0.0993 -0.1459)
OKLCHoklch(42.18% 0.176 304.2)
XYZxyz(11.6971, 6.3955, 30.7490)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642699 #5B9926
analogous
#2B2699 #642699 #992694
triadic
#642699 #996426 #269964
tetradic
#642699 #992B26 #5B9926 #269499
square
#642699 #992B26 #5B9926 #269499
split-complementary
#642699 #949926 #26992B
monochromatic
#240E37 #441A68 #642699 #8432CA #A162D8

Accessibility & contrast

On white

9.21
#642699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642699
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642699#FFFFFF#000000##FFFFFF
##6426991.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#5A425E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642699;
/* rgb */ color: rgb(100, 38, 153);
/* oklch */ color: oklch(42.2% 0.176 304.2);
Tailwind
colors: {
  custom: {
    50: '#9567b8',
    500: '#642699',
    950: '#000000',
  },
}
SCSS
$custom: #642699;
$custom-light: #9567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#642699",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 272.348,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42177,
    "c": 0.17648,
    "h": 304.2
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#642699
secondary
#8ABD5E
accent
#E3448E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642699

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

Preview Lab → · Contrast checker → · Palette generator →

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