#642F97#642F97

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

Color values

HEX#642F97
RGBrgb(100, 47, 151)
HSLhsl(271, 53%, 39%)
HSVhsv(271, 69%, 59%)
CMYKcmyk(33.8%, 68.9%, 0%, 40.8%)
CIE-LABlab(31.75, 43.99, -47.80)
CIE-LCHlch(31.75, 64.96, 312.63°)
OKLaboklab(43.1% 0.0902 -0.1358)
OKLCHoklch(43.1% 0.163 303.6)
XYZxyz(11.8567, 6.9767, 29.9942)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F97 #62972F
analogous
#302F97 #642F97 #972F96
triadic
#642F97 #97642F #2F9764
tetradic
#642F97 #97302F #62972F #2F9697
square
#642F97 #97302F #62972F #2F9697
split-complementary
#642F97 #96972F #2F9730
monochromatic
#26123A #452068 #642F97 #8340C3 #A16ED2

Accessibility & contrast

On white

8.77
#642F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642F97
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F97#FFFFFF#000000##FFFFFF
##642F971.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#024B95
Tritanopia (blue-blind)
#5A475F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #642f97;
/* rgb */ color: rgb(100, 47, 151);
/* oklch */ color: oklch(43.1% 0.163 303.6);
Tailwind
colors: {
  custom: {
    50: '#946cb6',
    500: '#642f97',
    950: '#000000',
  },
}
SCSS
$custom: #642f97;
$custom-light: #946cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#642f97",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 270.577,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.431,
    "c": 0.16305,
    "h": 303.6
  },
  "luminance": 0.06977
}

Semantic roles & 50–950 ramp

primary
#642F97
secondary
#90B968
accent
#DC4C93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F97

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

Preview Lab → · Contrast checker → · Palette generator →

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