#642497#642497

#642497 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.177 H 305.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#642497
RGBrgb(100, 36, 151)
HSLhsl(273, 61%, 37%)
HSVhsv(273, 76%, 59%)
CMYKcmyk(33.8%, 76.2%, 0%, 40.8%)
CIE-LABlab(29.93, 49.14, -50.77)
CIE-LCHlch(29.93, 70.65, 314.07°)
OKLaboklab(41.8% 0.1017 -0.1445)
OKLCHoklch(41.8% 0.177 305.1)
XYZxyz(11.4711, 6.2055, 29.8656)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642497 #579724
analogous
#2B2497 #642497 #972491
triadic
#642497 #976424 #249764
tetradic
#642497 #972B24 #579724 #249197
square
#642497 #972B24 #579724 #249197
split-complementary
#642497 #919724 #24972B
monochromatic
#230C34 #431866 #642497 #8530C8 #A25DD8

Accessibility & contrast

On white

9.37
#642497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#642497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642497
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642497#FFFFFF#000000##FFFFFF
##6424971.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#5A415C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642497;
/* rgb */ color: rgb(100, 36, 151);
/* oklch */ color: oklch(41.8% 0.177 305.1);
Tailwind
colors: {
  custom: {
    50: '#9566b6',
    500: '#642497',
    950: '#000000',
  },
}
SCSS
$custom: #642497;
$custom-light: #9566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642497",
  "rgb": {
    "r": 100,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 273.391,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.418,
    "c": 0.17667,
    "h": 305.1
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#642497
secondary
#86BD5A
accent
#E5438B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642497

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

Preview Lab → · Contrast checker → · Palette generator →

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