#642F99#642F99

#642F99 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.165 H 303.0°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#642F99
RGBrgb(100, 47, 153)
HSLhsl(270, 53%, 39%)
HSVhsv(270, 69%, 60%)
CMYKcmyk(34.6%, 69.3%, 0%, 40%)
CIE-LABlab(31.90, 44.50, -48.78)
CIE-LCHlch(31.90, 66.02, 312.37°)
OKLaboklab(43.25% 0.0899 -0.1387)
OKLCHoklch(43.25% 0.165 303)
XYZxyz(12.0205, 7.0423, 30.8568)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F99 #64992F
analogous
#2F2F99 #642F99 #992F99
triadic
#642F99 #99642F #2F9964
tetradic
#642F99 #992F2F #64992F #2F9999
square
#642F99 #992F2F #64992F #2F9999
split-complementary
#642F99 #99992F #2F992F
monochromatic
#27123B #45216A #642F99 #8341C5 #A16FD3

Accessibility & contrast

On white

8.72
#642F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#642F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F99
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F99#FFFFFF#000000##FFFFFF
##642F991.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642f99;
/* rgb */ color: rgb(100, 47, 153);
/* oklch */ color: oklch(43.3% 0.165 303.0);
Tailwind
colors: {
  custom: {
    50: '#956cb8',
    500: '#642f99',
    950: '#000000',
  },
}
SCSS
$custom: #642f99;
$custom-light: #956cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#642f99",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 270,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43253,
    "c": 0.16531,
    "h": 303
  },
  "luminance": 0.07042
}

Semantic roles & 50–950 ramp

primary
#642F99
secondary
#92BA69
accent
#DC4B94
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F99

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

Preview Lab → · Contrast checker → · Palette generator →

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