#642298#642298

#642298 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.180 H 305.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#642298
RGBrgb(100, 34, 152)
HSLhsl(274, 63%, 36%)
HSVhsv(274, 78%, 60%)
CMYKcmyk(34.2%, 77.6%, 0%, 40.4%)
CIE-LABlab(29.71, 50.21, -51.72)
CIE-LCHlch(29.71, 72.08, 314.15°)
OKLaboklab(41.68% 0.1033 -0.1473)
OKLCHoklch(41.68% 0.18 305)
XYZxyz(11.4938, 6.1204, 30.2755)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642298 #569822
analogous
#292298 #642298 #982291
triadic
#642298 #986422 #229864
tetradic
#642298 #982922 #569822 #229198
square
#642298 #982922 #569822 #229198
split-complementary
#642298 #919822 #229829
monochromatic
#220C34 #431766 #642298 #852DCA #A25ADA

Accessibility & contrast

On white

9.44
#642298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#642298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642298
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642298#FFFFFF#000000##FFFFFF
##6422981.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642298;
/* rgb */ color: rgb(100, 34, 152);
/* oklch */ color: oklch(41.7% 0.180 305.0);
Tailwind
colors: {
  custom: {
    50: '#9565b7',
    500: '#642298',
    950: '#000000',
  },
}
SCSS
$custom: #642298;
$custom-light: #9565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642298",
  "rgb": {
    "r": 100,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 273.559,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41677,
    "c": 0.17988,
    "h": 305
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#642298
secondary
#85BE57
accent
#E6418A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642298

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

Preview Lab → · Contrast checker → · Palette generator →

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