#642F81#642F81

#642F81 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.138 H 311.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#642F81
RGBrgb(100, 47, 129)
HSLhsl(279, 47%, 35%)
HSVhsv(279, 64%, 51%)
CMYKcmyk(22.5%, 63.6%, 0%, 49.4%)
CIE-LABlab(30.22, 38.63, -36.67)
CIE-LCHlch(30.22, 53.26, 316.49°)
OKLaboklab(41.51% 0.0918 -0.1032)
OKLCHoklch(41.51% 0.138 311.7)
XYZxyz(10.2338, 6.3276, 21.4469)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F81 #4C812F
analogous
#3B2F81 #642F81 #812F75
triadic
#642F81 #81642F #2F8164
tetradic
#642F81 #813B2F #4C812F #2F7581
square
#642F81 #813B2F #4C812F #2F7581
split-complementary
#642F81 #75812F #2F813B
monochromatic
#1E0E27 #411F54 #642F81 #873FAE #A464C6

Accessibility & contrast

On white

9.27
#642F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F81
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F81#FFFFFF#000000##FFFFFF
##642F811.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4584
Deuteranopia (green-blind)
#28487F
Tritanopia (blue-blind)
#613E53
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642f81;
/* rgb */ color: rgb(100, 47, 129);
/* oklch */ color: oklch(41.5% 0.138 311.7);
Tailwind
colors: {
  custom: {
    50: '#936ba6',
    500: '#642f81',
    950: '#000000',
  },
}
SCSS
$custom: #642f81;
$custom-light: #936ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#642f81",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 278.78,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41509,
    "c": 0.13808,
    "h": 311.7
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#642F81
secondary
#7AAD5E
accent
#D65280
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #642F81

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

Preview Lab → · Contrast checker → · Palette generator →

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