#642785#642785

#642785 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.154 H 311.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#642785
RGBrgb(100, 39, 133)
HSLhsl(279, 55%, 34%)
HSVhsv(279, 71%, 52%)
CMYKcmyk(24.8%, 70.7%, 0%, 47.8%)
CIE-LABlab(29.04, 43.57, -41.07)
CIE-LCHlch(29.04, 59.87, 316.69°)
OKLaboklab(40.74% 0.1015 -0.116)
OKLCHoklch(40.74% 0.154 311.2)
XYZxyz(10.2139, 5.8541, 22.7776)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642785 #488527
analogous
#352785 #642785 #852777
triadic
#642785 #856427 #278564
tetradic
#642785 #853527 #488527 #277785
square
#642785 #853527 #488527 #277785
split-complementary
#642785 #778527 #278535
monochromatic
#1D0B26 #401956 #642785 #8835B4 #A558CE

Accessibility & contrast

On white

9.67
#642785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#642785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642785
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642785#FFFFFF#000000##FFFFFF
##6427851.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#1B4683
Tritanopia (blue-blind)
#603B53
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642785;
/* rgb */ color: rgb(100, 39, 133);
/* oklch */ color: oklch(40.7% 0.154 311.2);
Tailwind
colors: {
  custom: {
    50: '#9466a9',
    500: '#642785',
    950: '#000000',
  },
}
SCSS
$custom: #642785;
$custom-light: #9466a9;
$custom-dark: #000000;
JSON
{
  "hex": "#642785",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 278.936,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.15412,
    "h": 311.2
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#642785
secondary
#76B355
accent
#DE4A7E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642785

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

Preview Lab → · Contrast checker → · Palette generator →

#642785 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva