#642686#642686

#642686 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.157 H 310.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#642686
RGBrgb(100, 38, 134)
HSLhsl(279, 56%, 34%)
HSVhsv(279, 72%, 53%)
CMYKcmyk(25.4%, 71.6%, 0%, 47.5%)
CIE-LABlab(28.95, 44.27, -41.85)
CIE-LCHlch(28.95, 60.92, 316.61°)
OKLaboklab(40.7% 0.1025 -0.1183)
OKLCHoklch(40.7% 0.157 310.9)
XYZxyz(10.2509, 5.8170, 23.1324)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642686 #488626
analogous
#342686 #642686 #862678
triadic
#642686 #866426 #268664
tetradic
#642686 #863426 #488626 #267886
square
#642686 #863426 #488626 #267886
split-complementary
#642686 #788626 #268634
monochromatic
#1D0B27 #401856 #642686 #8834B6 #A557CF

Accessibility & contrast

On white

9.71
#642686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642686
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642686#FFFFFF#000000##FFFFFF
##6426861.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#184584
Tritanopia (blue-blind)
#603B53
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642686;
/* rgb */ color: rgb(100, 38, 134);
/* oklch */ color: oklch(40.7% 0.157 310.9);
Tailwind
colors: {
  custom: {
    50: '#9466aa',
    500: '#642686',
    950: '#000000',
  },
}
SCSS
$custom: #642686;
$custom-light: #9466aa;
$custom-dark: #000000;
JSON
{
  "hex": "#642686",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 278.75,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40698,
    "c": 0.15651,
    "h": 310.9
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#642686
secondary
#76B454
accent
#DF497E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642686

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

Preview Lab → · Contrast checker → · Palette generator →

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