#642398#642398

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

Color values

HEX#642398
RGBrgb(100, 35, 152)
HSLhsl(273, 63%, 37%)
HSVhsv(273, 77%, 60%)
CMYKcmyk(34.2%, 77%, 0%, 40.4%)
CIE-LABlab(29.86, 49.80, -51.49)
CIE-LCHlch(29.86, 71.63, 314.04°)
OKLaboklab(41.78% 0.1024 -0.1466)
OKLCHoklch(41.78% 0.179 304.9)
XYZxyz(11.5228, 6.1785, 30.2852)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642398 #579823
analogous
#292398 #642398 #982392
triadic
#642398 #986423 #239864
tetradic
#642398 #982923 #579823 #239298
square
#642398 #982923 #579823 #239298
split-complementary
#642398 #929823 #239829
monochromatic
#230C35 #431866 #642398 #852ECA #A25CD9

Accessibility & contrast

On white

9.39
#642398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642398
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642398#FFFFFF#000000##FFFFFF
##6423981.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#5A405C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642398;
/* rgb */ color: rgb(100, 35, 152);
/* oklch */ color: oklch(41.8% 0.179 304.9);
Tailwind
colors: {
  custom: {
    50: '#9565b7',
    500: '#642398',
    950: '#000000',
  },
}
SCSS
$custom: #642398;
$custom-light: #9565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642398",
  "rgb": {
    "r": 100,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 273.333,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41778,
    "c": 0.1788,
    "h": 304.9
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#642398
secondary
#86BE59
accent
#E6428B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642398

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

Preview Lab → · Contrast checker → · Palette generator →

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