#642097#642097

#642097 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.181 H 305.6°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#642097
RGBrgb(100, 32, 151)
HSLhsl(274, 65%, 36%)
HSVhsv(274, 79%, 59%)
CMYKcmyk(33.8%, 78.8%, 0%, 40.8%)
CIE-LABlab(29.35, 50.78, -51.70)
CIE-LCHlch(29.35, 72.46, 314.49°)
OKLaboklab(41.4% 0.1053 -0.1472)
OKLCHoklch(41.4% 0.181 305.6)
XYZxyz(11.3567, 5.9768, 29.8275)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642097 #539720
analogous
#292097 #642097 #97208E
triadic
#642097 #976420 #209764
tetradic
#642097 #972920 #539720 #208E97
square
#642097 #972920 #539720 #208E97
split-complementary
#642097 #8E9720 #209729
monochromatic
#210B32 #431564 #642097 #852BC9 #A256DB

Accessibility & contrast

On white

9.57
#642097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#642097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642097
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642097#FFFFFF#000000##FFFFFF
##6420971.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642097;
/* rgb */ color: rgb(100, 32, 151);
/* oklch */ color: oklch(41.4% 0.181 305.6);
Tailwind
colors: {
  custom: {
    50: '#9564b6',
    500: '#642097',
    950: '#000000',
  },
}
SCSS
$custom: #642097;
$custom-light: #9564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642097",
  "rgb": {
    "r": 100,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 274.286,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41399,
    "c": 0.18097,
    "h": 305.6
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#642097
secondary
#82BF54
accent
#E84088
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642097

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

Preview Lab → · Contrast checker → · Palette generator →

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