#642F80#642F80

#642F80 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.137 H 312.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#642F80
RGBrgb(100, 47, 128)
HSLhsl(279, 46%, 34%)
HSVhsv(279, 63%, 50%)
CMYKcmyk(21.9%, 63.3%, 0%, 49.8%)
CIE-LABlab(30.16, 38.39, -36.15)
CIE-LCHlch(30.16, 52.73, 316.72°)
OKLaboklab(41.44% 0.0918 -0.1016)
OKLCHoklch(41.44% 0.137 312.1)
XYZxyz(10.1676, 6.3011, 21.0985)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F80 #4B802F
analogous
#3B2F80 #642F80 #802F74
triadic
#642F80 #80642F #2F8064
tetradic
#642F80 #803B2F #4B802F #2F7480
square
#642F80 #803B2F #4B802F #2F7480
split-complementary
#642F80 #74802F #2F803B
monochromatic
#1E0E26 #411F53 #642F80 #873FAD #A463C6

Accessibility & contrast

On white

9.29
#642F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#642F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F80
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F80#FFFFFF#000000##FFFFFF
##642F801.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104483
Deuteranopia (green-blind)
#29487E
Tritanopia (blue-blind)
#613E53
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642f80;
/* rgb */ color: rgb(100, 47, 128);
/* oklch */ color: oklch(41.4% 0.137 312.1);
Tailwind
colors: {
  custom: {
    50: '#936ba5',
    500: '#642f80',
    950: '#000000',
  },
}
SCSS
$custom: #642f80;
$custom-light: #936ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#642f80",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 279.259,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41442,
    "c": 0.13695,
    "h": 312.1
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#642F80
secondary
#79AD5E
accent
#D65280
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #642F80

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

Preview Lab → · Contrast checker → · Palette generator →

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