#642797#642797

#642797 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.173 H 304.8°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#642797
RGBrgb(100, 39, 151)
HSLhsl(273, 59%, 37%)
HSVhsv(273, 74%, 59%)
CMYKcmyk(33.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(30.39, 47.82, -50.01)
CIE-LCHlch(30.39, 69.20, 313.72°)
OKLaboklab(42.13% 0.0987 -0.1423)
OKLCHoklch(42.13% 0.173 304.8)
XYZxyz(11.5657, 6.3948, 29.8972)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642797 #5A9727
analogous
#2C2797 #642797 #972792
triadic
#642797 #976427 #279764
tetradic
#642797 #972C27 #5A9727 #279297
square
#642797 #972C27 #5A9727 #279297
split-complementary
#642797 #929727 #27972C
monochromatic
#240E36 #441A66 #642797 #8434C8 #A162D6

Accessibility & contrast

On white

9.21
#642797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642797
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642797#FFFFFF#000000##FFFFFF
##6427971.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#5A425D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642797;
/* rgb */ color: rgb(100, 39, 151);
/* oklch */ color: oklch(42.1% 0.173 304.8);
Tailwind
colors: {
  custom: {
    50: '#9567b6',
    500: '#642797',
    950: '#000000',
  },
}
SCSS
$custom: #642797;
$custom-light: #9567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642797",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 272.679,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.1732,
    "h": 304.8
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#642797
secondary
#89BC5E
accent
#E2468D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642797

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

Preview Lab → · Contrast checker → · Palette generator →

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