#642697#642697

#642697 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.174 H 304.9°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#642697
RGBrgb(100, 38, 151)
HSLhsl(273, 60%, 37%)
HSVhsv(273, 75%, 59%)
CMYKcmyk(33.8%, 74.8%, 0%, 40.8%)
CIE-LABlab(30.23, 48.27, -50.27)
CIE-LCHlch(30.23, 69.69, 313.84°)
OKLaboklab(42.02% 0.0997 -0.143)
OKLCHoklch(42.02% 0.174 304.9)
XYZxyz(11.5333, 6.3300, 29.8864)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642697 #599726
analogous
#2B2697 #642697 #972692
triadic
#642697 #976426 #269764
tetradic
#642697 #972B26 #599726 #269297
square
#642697 #972B26 #599726 #269297
split-complementary
#642697 #929726 #26972B
monochromatic
#230D35 #441A66 #642697 #8432C8 #A160D7

Accessibility & contrast

On white

9.27
#642697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642697
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642697#FFFFFF#000000##FFFFFF
##6426971.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#5A425C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642697;
/* rgb */ color: rgb(100, 38, 151);
/* oklch */ color: oklch(42.0% 0.174 304.9);
Tailwind
colors: {
  custom: {
    50: '#9567b6',
    500: '#642697',
    950: '#000000',
  },
}
SCSS
$custom: #642697;
$custom-light: #9567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642697",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 272.92,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42015,
    "c": 0.17437,
    "h": 304.9
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#642697
secondary
#88BC5C
accent
#E3458C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642697

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

Preview Lab → · Contrast checker → · Palette generator →

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