#642F98#642F98

#642F98 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.164 H 303.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#642F98
RGBrgb(100, 47, 152)
HSLhsl(270, 53%, 39%)
HSVhsv(270, 69%, 60%)
CMYKcmyk(34.2%, 69.1%, 0%, 40.4%)
CIE-LABlab(31.83, 44.24, -48.29)
CIE-LCHlch(31.83, 65.49, 312.50°)
OKLaboklab(43.18% 0.0901 -0.1373)
OKLCHoklch(43.18% 0.164 303.3)
XYZxyz(11.9382, 7.0094, 30.4237)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F98 #63982F
analogous
#302F98 #642F98 #982F98
triadic
#642F98 #98642F #2F9864
tetradic
#642F98 #98302F #63982F #2F9898
square
#642F98 #98302F #63982F #2F9898
split-complementary
#642F98 #98982F #2F9830
monochromatic
#26123B #452169 #642F98 #8340C4 #A16FD2

Accessibility & contrast

On white

8.74
#642F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#642F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F98
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F98#FFFFFF#000000##FFFFFF
##642F981.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#5A475F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642f98;
/* rgb */ color: rgb(100, 47, 152);
/* oklch */ color: oklch(43.2% 0.164 303.3);
Tailwind
colors: {
  custom: {
    50: '#956cb7',
    500: '#642f98',
    950: '#000000',
  },
}
SCSS
$custom: #642f98;
$custom-light: #956cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#642f98",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 270.286,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43176,
    "c": 0.16418,
    "h": 303.3
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#642F98
secondary
#91BA69
accent
#DC4C93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F98

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

Preview Lab → · Contrast checker → · Palette generator →

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