#642685#642685

#642685 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.155 H 311.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#642685
RGBrgb(100, 38, 133)
HSLhsl(279, 56%, 34%)
HSVhsv(279, 71%, 52%)
CMYKcmyk(24.8%, 71.4%, 0%, 47.8%)
CIE-LABlab(28.87, 44.04, -41.34)
CIE-LCHlch(28.87, 60.40, 316.81°)
OKLaboklab(40.62% 0.1026 -0.1168)
OKLCHoklch(40.62% 0.155 311.3)
XYZxyz(10.1815, 5.7893, 22.7668)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642685 #478526
analogous
#342685 #642685 #852676
triadic
#642685 #856426 #268564
tetradic
#642685 #853426 #478526 #267685
square
#642685 #853426 #478526 #267685
split-complementary
#642685 #768526 #268534
monochromatic
#1C0B26 #401855 #642685 #8834B5 #A557CF

Accessibility & contrast

On white

9.73
#642685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#642685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642685
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642685#FFFFFF#000000##FFFFFF
##6426851.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#194583
Tritanopia (blue-blind)
#603A52
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642685;
/* rgb */ color: rgb(100, 38, 133);
/* oklch */ color: oklch(40.6% 0.155 311.3);
Tailwind
colors: {
  custom: {
    50: '#9466a9',
    500: '#642685',
    950: '#000000',
  },
}
SCSS
$custom: #642685;
$custom-light: #9466a9;
$custom-dark: #000000;
JSON
{
  "hex": "#642685",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 133
  },
  "hsl": {
    "h": 279.158,
    "s": 55.556,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40624,
    "c": 0.15546,
    "h": 311.3
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#642685
secondary
#75B353
accent
#DF497D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642685

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

Preview Lab → · Contrast checker → · Palette generator →

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