#642197#642197

#642197 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.180 H 305.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#642197
RGBrgb(100, 33, 151)
HSLhsl(274, 64%, 36%)
HSVhsv(274, 78%, 59%)
CMYKcmyk(33.8%, 78.1%, 0%, 40.8%)
CIE-LABlab(29.49, 50.38, -51.47)
CIE-LCHlch(29.49, 72.02, 314.39°)
OKLaboklab(41.5% 0.1044 -0.1465)
OKLCHoklch(41.5% 0.18 305.5)
XYZxyz(11.3840, 6.0315, 29.8366)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642197 #549721
analogous
#292197 #642197 #97218F
triadic
#642197 #976421 #219764
tetradic
#642197 #972921 #549721 #218F97
square
#642197 #972921 #549721 #218F97
split-complementary
#642197 #8F9721 #219729
monochromatic
#210B33 #431665 #642197 #852CC9 #A258DA

Accessibility & contrast

On white

9.52
#642197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#642197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642197
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642197#FFFFFF#000000##FFFFFF
##6421971.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#5B3F5B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #642197;
/* rgb */ color: rgb(100, 33, 151);
/* oklch */ color: oklch(41.5% 0.180 305.5);
Tailwind
colors: {
  custom: {
    50: '#9564b6',
    500: '#642197',
    950: '#000000',
  },
}
SCSS
$custom: #642197;
$custom-light: #9564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642197",
  "rgb": {
    "r": 100,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 274.068,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41495,
    "c": 0.17993,
    "h": 305.5
  },
  "luminance": 0.06031
}

Semantic roles & 50–950 ramp

primary
#642197
secondary
#83BE55
accent
#E74189
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642197

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

Preview Lab → · Contrast checker → · Palette generator →

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