#642E99#642E99

#642E99 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.167 H 303.1°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#642E99
RGBrgb(100, 46, 153)
HSLhsl(270, 54%, 39%)
HSVhsv(270, 70%, 60%)
CMYKcmyk(34.6%, 69.9%, 0%, 40%)
CIE-LABlab(31.72, 45.00, -49.07)
CIE-LCHlch(31.72, 66.58, 312.52°)
OKLaboklab(43.13% 0.091 -0.1396)
OKLCHoklch(43.13% 0.167 303.1)
XYZxyz(11.9810, 6.9632, 30.8437)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E99 #63992E
analogous
#2E2E99 #642E99 #992E99
triadic
#642E99 #99642E #2E9964
tetradic
#642E99 #992E2E #63992E #2E9999
square
#642E99 #992E2E #63992E #2E9999
split-complementary
#642E99 #99992E #2E992E
monochromatic
#26123B #45206A #642E99 #833FC5 #A16ED3

Accessibility & contrast

On white

8.78
#642E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#642E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E99
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E99#FFFFFF#000000##FFFFFF
##642E991.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#594760
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642e99;
/* rgb */ color: rgb(100, 46, 153);
/* oklch */ color: oklch(43.1% 0.167 303.1);
Tailwind
colors: {
  custom: {
    50: '#956bb8',
    500: '#642e99',
    950: '#000000',
  },
}
SCSS
$custom: #642e99;
$custom-light: #956bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#642e99",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 270.28,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43125,
    "c": 0.16662,
    "h": 303.1
  },
  "luminance": 0.06963
}

Semantic roles & 50–950 ramp

primary
#642E99
secondary
#91BB68
accent
#DD4B93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642E99

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

Preview Lab → · Contrast checker → · Palette generator →

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