#642792#642792

#642792 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.168 H 306.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#642792
RGBrgb(100, 39, 146)
HSLhsl(274, 58%, 36%)
HSVhsv(274, 73%, 57%)
CMYKcmyk(31.5%, 73.3%, 0%, 42.7%)
CIE-LABlab(30.00, 46.62, -47.58)
CIE-LCHlch(30.00, 66.61, 314.42°)
OKLaboklab(41.73% 0.0997 -0.1351)
OKLCHoklch(41.73% 0.168 306.4)
XYZxyz(11.1682, 6.2358, 27.8038)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642792 #559227
analogous
#2F2792 #642792 #92278B
triadic
#642792 #926427 #279264
tetradic
#642792 #922F27 #559227 #278B92
square
#642792 #922F27 #559227 #278B92
split-complementary
#642792 #8B9227 #27922F
monochromatic
#220D31 #431A62 #642792 #8534C2 #A25FD4

Accessibility & contrast

On white

9.34
#642792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#642792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642792
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642792#FFFFFF#000000##FFFFFF
##6427921.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#5C405A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642792;
/* rgb */ color: rgb(100, 39, 146);
/* oklch */ color: oklch(41.7% 0.168 306.4);
Tailwind
colors: {
  custom: {
    50: '#9567b3',
    500: '#642792',
    950: '#000000',
  },
}
SCSS
$custom: #642792;
$custom-light: #9567b3;
$custom-dark: #000000;
JSON
{
  "hex": "#642792",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 274.206,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4173,
    "c": 0.1679,
    "h": 306.4
  },
  "luminance": 0.06236
}

Semantic roles & 50–950 ramp

primary
#642792
secondary
#84BA5B
accent
#E14789
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642792

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

Preview Lab → · Contrast checker → · Palette generator →

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