#642988#642988

#642988 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.155 H 309.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#642988
RGBrgb(100, 41, 136)
HSLhsl(277, 54%, 35%)
HSVhsv(277, 70%, 53%)
CMYKcmyk(26.5%, 69.9%, 0%, 46.7%)
CIE-LABlab(29.60, 43.31, -42.04)
CIE-LCHlch(29.60, 60.36, 315.85°)
OKLaboklab(41.21% 0.0988 -0.1189)
OKLCHoklch(41.21% 0.155 309.7)
XYZxyz(10.4915, 6.0730, 23.9073)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642988 #4D8829
analogous
#352988 #642988 #88297D
triadic
#642988 #886429 #298864
tetradic
#642988 #883529 #4D8829 #297D88
square
#642988 #883529 #4D8829 #297D88
split-complementary
#642988 #7D8829 #298835
monochromatic
#1F0D2A #411B59 #642988 #8737B7 #A35DCE

Accessibility & contrast

On white

9.48
#642988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#642988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642988
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642988#FFFFFF#000000##FFFFFF
##6429881.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#194786
Tritanopia (blue-blind)
#5F3D55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642988;
/* rgb */ color: rgb(100, 41, 136);
/* oklch */ color: oklch(41.2% 0.155 309.7);
Tailwind
colors: {
  custom: {
    50: '#9468ab',
    500: '#642988',
    950: '#000000',
  },
}
SCSS
$custom: #642988;
$custom-light: #9468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642988",
  "rgb": {
    "r": 100,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 277.263,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.1546,
    "h": 309.7
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#642988
secondary
#7BB459
accent
#DD4B82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #642988

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

Preview Lab → · Contrast checker → · Palette generator →

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