#642498#642498

#642498 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.178 H 304.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#642498
RGBrgb(100, 36, 152)
HSLhsl(273, 62%, 37%)
HSVhsv(273, 76%, 60%)
CMYKcmyk(34.2%, 76.3%, 0%, 40.4%)
CIE-LABlab(30.01, 49.38, -51.25)
CIE-LCHlch(30.01, 71.16, 313.93°)
OKLaboklab(41.88% 0.1014 -0.1459)
OKLCHoklch(41.88% 0.178 304.8)
XYZxyz(11.5526, 6.2381, 30.2951)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642498 #589824
analogous
#2A2498 #642498 #982492
triadic
#642498 #986424 #249864
tetradic
#642498 #982A24 #589824 #249298
square
#642498 #982A24 #589824 #249298
split-complementary
#642498 #929824 #24982A
monochromatic
#230D35 #431867 #642498 #8530C9 #A25ED9

Accessibility & contrast

On white

9.34
#642498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#642498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642498
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642498#FFFFFF#000000##FFFFFF
##6424981.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#5A415C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642498;
/* rgb */ color: rgb(100, 36, 152);
/* oklch */ color: oklch(41.9% 0.178 304.8);
Tailwind
colors: {
  custom: {
    50: '#9566b7',
    500: '#642498',
    950: '#000000',
  },
}
SCSS
$custom: #642498;
$custom-light: #9566b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642498",
  "rgb": {
    "r": 100,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 273.103,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41882,
    "c": 0.1777,
    "h": 304.8
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#642498
secondary
#87BE5A
accent
#E5438C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642498

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

Preview Lab → · Contrast checker → · Palette generator →

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