#642F87#642F87

#642F87 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.145 H 309.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#642F87
RGBrgb(100, 47, 135)
HSLhsl(276, 48%, 36%)
HSVhsv(276, 65%, 53%)
CMYKcmyk(25.9%, 65.2%, 0%, 47.1%)
CIE-LABlab(30.62, 40.06, -39.77)
CIE-LCHlch(30.62, 56.45, 315.20°)
OKLaboklab(41.92% 0.0916 -0.1122)
OKLCHoklch(41.92% 0.145 309.2)
XYZxyz(10.6444, 6.4918, 23.6093)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F87 #52872F
analogous
#382F87 #642F87 #872F7E
triadic
#642F87 #87642F #2F8764
tetradic
#642F87 #87382F #52872F #2F7E87
square
#642F87 #87382F #52872F #2F7E87
split-complementary
#642F87 #7E872F #2F8738
monochromatic
#210F2C #421F5A #642F87 #863FB4 #A266CA

Accessibility & contrast

On white

9.14
#642F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F87
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F87#FFFFFF#000000##FFFFFF
##642F871.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#224985
Tritanopia (blue-blind)
#5F4156
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642f87;
/* rgb */ color: rgb(100, 47, 135);
/* oklch */ color: oklch(41.9% 0.145 309.2);
Tailwind
colors: {
  custom: {
    50: '#936baa',
    500: '#642f87',
    950: '#000000',
  },
}
SCSS
$custom: #642f87;
$custom-light: #936baa;
$custom-dark: #000000;
JSON
{
  "hex": "#642f87",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 276.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.14489,
    "h": 309.2
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#642F87
secondary
#81B161
accent
#D85086
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F87

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

Preview Lab → · Contrast checker → · Palette generator →

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