#642E98#642E98

#642E98 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.166 H 303.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#642E98
RGBrgb(100, 46, 152)
HSLhsl(271, 54%, 39%)
HSVhsv(271, 70%, 60%)
CMYKcmyk(34.2%, 69.7%, 0%, 40.4%)
CIE-LABlab(31.65, 44.75, -48.58)
CIE-LCHlch(31.65, 66.05, 312.65°)
OKLaboklab(43.05% 0.0912 -0.1381)
OKLCHoklch(43.05% 0.166 303.4)
XYZxyz(11.8987, 6.9303, 30.4105)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E98 #62982E
analogous
#2F2E98 #642E98 #982E97
triadic
#642E98 #98642E #2E9864
tetradic
#642E98 #982F2E #62982E #2E9798
square
#642E98 #982F2E #62982E #2E9798
split-complementary
#642E98 #97982E #2E982F
monochromatic
#26123A #452069 #642E98 #833EC5 #A16DD3

Accessibility & contrast

On white

8.80
#642E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642E98
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E98#FFFFFF#000000##FFFFFF
##642E981.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#5A465F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642e98;
/* rgb */ color: rgb(100, 46, 152);
/* oklch */ color: oklch(43.0% 0.166 303.4);
Tailwind
colors: {
  custom: {
    50: '#956bb7',
    500: '#642e98',
    950: '#000000',
  },
}
SCSS
$custom: #642e98;
$custom-light: #956bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#642e98",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 270.566,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43047,
    "c": 0.1655,
    "h": 303.4
  },
  "luminance": 0.0693
}

Semantic roles & 50–950 ramp

primary
#642E98
secondary
#90BA68
accent
#DD4B93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642E98

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

Preview Lab → · Contrast checker → · Palette generator →

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