#642897#642897

#642897 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.172 H 304.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#642897
RGBrgb(100, 40, 151)
HSLhsl(272, 58%, 37%)
HSVhsv(272, 74%, 59%)
CMYKcmyk(33.8%, 73.5%, 0%, 40.8%)
CIE-LABlab(30.55, 47.37, -49.75)
CIE-LCHlch(30.55, 68.70, 313.59°)
OKLaboklab(42.24% 0.0977 -0.1415)
OKLCHoklch(42.24% 0.172 304.6)
XYZxyz(11.5990, 6.4613, 29.9083)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642897 #5B9728
analogous
#2C2897 #642897 #972893
triadic
#642897 #976428 #289764
tetradic
#642897 #972C28 #5B9728 #289397
square
#642897 #972C28 #5B9728 #289397
split-complementary
#642897 #939728 #28972C
monochromatic
#240E36 #441B67 #642897 #8435C7 #A164D6

Accessibility & contrast

On white

9.16
#642897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642897
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642897#FFFFFF#000000##FFFFFF
##6428971.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642897;
/* rgb */ color: rgb(100, 40, 151);
/* oklch */ color: oklch(42.2% 0.172 304.6);
Tailwind
colors: {
  custom: {
    50: '#9568b6',
    500: '#642897',
    950: '#000000',
  },
}
SCSS
$custom: #642897;
$custom-light: #9568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642897",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 272.432,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4224,
    "c": 0.172,
    "h": 304.6
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#642897
secondary
#8ABC5F
accent
#E1468E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642897

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

Preview Lab → · Contrast checker → · Palette generator →

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