#642991#642991

#642991 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.164 H 306.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#642991
RGBrgb(100, 41, 145)
HSLhsl(274, 56%, 36%)
HSVhsv(274, 72%, 57%)
CMYKcmyk(31%, 71.7%, 0%, 43.1%)
CIE-LABlab(30.25, 45.45, -46.55)
CIE-LCHlch(30.25, 65.06, 314.32°)
OKLaboklab(41.89% 0.0977 -0.1321)
OKLCHoklch(41.89% 0.164 306.5)
XYZxyz(11.1582, 6.3397, 27.4184)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642991 #569129
analogous
#302991 #642991 #91298A
triadic
#642991 #916429 #299164
tetradic
#642991 #913029 #569129 #298A91
square
#642991 #913029 #569129 #298A91
split-complementary
#642991 #8A9129 #299130
monochromatic
#220E32 #431C61 #642991 #8536C1 #A262D3

Accessibility & contrast

On white

9.26
#642991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642991
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642991#FFFFFF#000000##FFFFFF
##6429911.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642991;
/* rgb */ color: rgb(100, 41, 145);
/* oklch */ color: oklch(41.9% 0.164 306.5);
Tailwind
colors: {
  custom: {
    50: '#9468b2',
    500: '#642991',
    950: '#000000',
  },
}
SCSS
$custom: #642991;
$custom-light: #9468b2;
$custom-dark: #000000;
JSON
{
  "hex": "#642991",
  "rgb": {
    "r": 100,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 274.038,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41887,
    "c": 0.16431,
    "h": 306.5
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#642991
secondary
#85B85D
accent
#DF498A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642991

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

Preview Lab → · Contrast checker → · Palette generator →

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