#642187#642187

#642187 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.164 H 311.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#642187
RGBrgb(100, 33, 135)
HSLhsl(279, 61%, 33%)
HSVhsv(279, 76%, 53%)
CMYKcmyk(25.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(28.24, 46.70, -43.61)
CIE-LCHlch(28.24, 63.90, 316.96°)
OKLaboklab(40.22% 0.1077 -0.1234)
OKLCHoklch(40.22% 0.164 311.1)
XYZxyz(10.1717, 5.5466, 23.4517)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642187 #448721
analogous
#312187 #642187 #872177
triadic
#642187 #876421 #218764
tetradic
#642187 #873121 #448721 #217787
square
#642187 #873121 #448721 #217787
split-complementary
#642187 #778721 #218731
monochromatic
#1B0925 #401556 #642187 #882DB8 #A64FD4

Accessibility & contrast

On white

9.96
#642187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#642187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642187
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642187#FFFFFF#000000##FFFFFF
##6421871.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#0F4485
Tritanopia (blue-blind)
#5F3852
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642187;
/* rgb */ color: rgb(100, 33, 135);
/* oklch */ color: oklch(40.2% 0.164 311.1);
Tailwind
colors: {
  custom: {
    50: '#9463ab',
    500: '#642187',
    950: '#000000',
  },
}
SCSS
$custom: #642187;
$custom-light: #9463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642187",
  "rgb": {
    "r": 100,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 279.412,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40218,
    "c": 0.16381,
    "h": 311.1
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#642187
secondary
#71B74D
accent
#E4447B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642187

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

Preview Lab → · Contrast checker → · Palette generator →

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