#642790#642790

#642790 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.166 H 307.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#642790
RGBrgb(100, 39, 144)
HSLhsl(275, 57%, 36%)
HSVhsv(275, 73%, 56%)
CMYKcmyk(30.6%, 72.9%, 0%, 43.5%)
CIE-LABlab(29.85, 46.15, -46.59)
CIE-LCHlch(29.85, 65.58, 314.73°)
OKLaboklab(41.57% 0.1 -0.1322)
OKLCHoklch(41.57% 0.166 307.1)
XYZxyz(11.0140, 6.1741, 26.9916)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642790 #539027
analogous
#2F2790 #642790 #902787
triadic
#642790 #906427 #279064
tetradic
#642790 #902F27 #539027 #278790
square
#642790 #902F27 #539027 #278790
split-complementary
#642790 #879027 #27902F
monochromatic
#210D30 #431A60 #642790 #8534C0 #A25ED3

Accessibility & contrast

On white

9.40
#642790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#642790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642790
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642790#FFFFFF#000000##FFFFFF
##6427901.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#02478E
Tritanopia (blue-blind)
#5D3F59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642790;
/* rgb */ color: rgb(100, 39, 144);
/* oklch */ color: oklch(41.6% 0.166 307.1);
Tailwind
colors: {
  custom: {
    50: '#9467b1',
    500: '#642790',
    950: '#000000',
  },
}
SCSS
$custom: #642790;
$custom-light: #9467b1;
$custom-dark: #000000;
JSON
{
  "hex": "#642790",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 274.857,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.16577,
    "h": 307.1
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#642790
secondary
#82B95A
accent
#E14787
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642790

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

Preview Lab → · Contrast checker → · Palette generator →

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