#642F86#642F86

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

Color values

HEX#642F86
RGBrgb(100, 47, 134)
HSLhsl(277, 48%, 35%)
HSVhsv(277, 65%, 53%)
CMYKcmyk(25.4%, 64.9%, 0%, 47.5%)
CIE-LABlab(30.55, 39.82, -39.26)
CIE-LCHlch(30.55, 55.92, 315.40°)
OKLaboklab(41.85% 0.0917 -0.1107)
OKLCHoklch(41.85% 0.144 309.6)
XYZxyz(10.5743, 6.4638, 23.2402)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F86 #51862F
analogous
#392F86 #642F86 #862F7C
triadic
#642F86 #86642F #2F8664
tetradic
#642F86 #86392F #51862F #2F7C86
square
#642F86 #86392F #51862F #2F7C86
split-complementary
#642F86 #7C862F #2F8639
monochromatic
#200F2B #421F59 #642F86 #863FB3 #A366C9

Accessibility & contrast

On white

9.16
#642F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F86
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F86#FFFFFF#000000##FFFFFF
##642F861.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024689
Deuteranopia (green-blind)
#234984
Tritanopia (blue-blind)
#5F4056
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642f86;
/* rgb */ color: rgb(100, 47, 134);
/* oklch */ color: oklch(41.9% 0.144 309.6);
Tailwind
colors: {
  custom: {
    50: '#936baa',
    500: '#642f86',
    950: '#000000',
  },
}
SCSS
$custom: #642f86;
$custom-light: #936baa;
$custom-dark: #000000;
JSON
{
  "hex": "#642f86",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 276.552,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.14375,
    "h": 309.6
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#642F86
secondary
#80B060
accent
#D85085
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F86

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

Preview Lab → · Contrast checker → · Palette generator →

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