#642698#642698

#642698 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.175 H 304.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#642698
RGBrgb(100, 38, 152)
HSLhsl(273, 60%, 37%)
HSVhsv(273, 75%, 60%)
CMYKcmyk(34.2%, 75%, 0%, 40.4%)
CIE-LABlab(30.31, 48.51, -50.75)
CIE-LCHlch(30.31, 70.21, 313.71°)
OKLaboklab(42.1% 0.0995 -0.1445)
OKLCHoklch(42.1% 0.175 304.6)
XYZxyz(11.6148, 6.3626, 30.3159)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642698 #5A9826
analogous
#2B2698 #642698 #982693
triadic
#642698 #986426 #269864
tetradic
#642698 #982B26 #5A9826 #269398
square
#642698 #982B26 #5A9826 #269398
split-complementary
#642698 #939826 #26982B
monochromatic
#240E36 #441A67 #642698 #8432C9 #A161D7

Accessibility & contrast

On white

9.24
#642698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642698
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642698#FFFFFF#000000##FFFFFF
##6426981.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642698;
/* rgb */ color: rgb(100, 38, 152);
/* oklch */ color: oklch(42.1% 0.175 304.6);
Tailwind
colors: {
  custom: {
    50: '#9567b7',
    500: '#642698',
    950: '#000000',
  },
}
SCSS
$custom: #642698;
$custom-light: #9567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642698",
  "rgb": {
    "r": 100,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 272.632,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.17542,
    "h": 304.6
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#642698
secondary
#89BD5D
accent
#E3458D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642698

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

Preview Lab → · Contrast checker → · Palette generator →

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