#642088#642088

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

Color values

HEX#642088
RGBrgb(100, 32, 136)
HSLhsl(279, 62%, 33%)
HSVhsv(279, 76%, 53%)
CMYKcmyk(26.5%, 76.5%, 0%, 46.7%)
CIE-LABlab(28.17, 47.34, -44.35)
CIE-LCHlch(28.17, 64.87, 316.87°)
OKLaboklab(40.19% 0.1085 -0.1256)
OKLCHoklch(40.19% 0.166 310.8)
XYZxyz(10.2151, 5.5202, 23.8152)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642088 #448820
analogous
#302088 #642088 #882078
triadic
#642088 #886420 #208864
tetradic
#642088 #883020 #448820 #207888
square
#642088 #883020 #448820 #207888
split-complementary
#642088 #788820 #208830
monochromatic
#1B0925 #401456 #642088 #882CBA #A64DD5

Accessibility & contrast

On white

9.98
#642088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#642088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642088
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642088#FFFFFF#000000##FFFFFF
##6420881.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#0A4486
Tritanopia (blue-blind)
#5F3852
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642088;
/* rgb */ color: rgb(100, 32, 136);
/* oklch */ color: oklch(40.2% 0.166 310.8);
Tailwind
colors: {
  custom: {
    50: '#9463ab',
    500: '#642088',
    950: '#000000',
  },
}
SCSS
$custom: #642088;
$custom-light: #9463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642088",
  "rgb": {
    "r": 100,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 279.231,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40192,
    "c": 0.16599,
    "h": 310.8
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#642088
secondary
#71B84C
accent
#E5437B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642088

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

Preview Lab → · Contrast checker → · Palette generator →

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