#642891#642891

#642891 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.166 H 306.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#642891
RGBrgb(100, 40, 145)
HSLhsl(274, 57%, 36%)
HSVhsv(274, 72%, 57%)
CMYKcmyk(31%, 72.4%, 0%, 43.1%)
CIE-LABlab(30.09, 45.92, -46.82)
CIE-LCHlch(30.09, 65.58, 314.45°)
OKLaboklab(41.77% 0.0988 -0.1329)
OKLCHoklch(41.77% 0.166 306.6)
XYZxyz(11.1241, 6.2714, 27.4070)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642891 #559128
analogous
#302891 #642891 #91288A
triadic
#642891 #916428 #289164
tetradic
#642891 #913028 #559128 #288A91
square
#642891 #913028 #559128 #288A91
split-complementary
#642891 #8A9128 #289130
monochromatic
#220E31 #431B61 #642891 #8535C1 #A260D3

Accessibility & contrast

On white

9.32
#642891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642891
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642891#FFFFFF#000000##FFFFFF
##6428911.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#02478F
Tritanopia (blue-blind)
#5C405A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642891;
/* rgb */ color: rgb(100, 40, 145);
/* oklch */ color: oklch(41.8% 0.166 306.6);
Tailwind
colors: {
  custom: {
    50: '#9467b2',
    500: '#642891',
    950: '#000000',
  },
}
SCSS
$custom: #642891;
$custom-light: #9467b2;
$custom-dark: #000000;
JSON
{
  "hex": "#642891",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 274.286,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.16559,
    "h": 306.6
  },
  "luminance": 0.06271
}

Semantic roles & 50–950 ramp

primary
#642891
secondary
#84B95C
accent
#E04889
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642891

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

Preview Lab → · Contrast checker → · Palette generator →

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