#642998#642998

#642998 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.172 H 304.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#642998
RGBrgb(100, 41, 152)
HSLhsl(272, 58%, 38%)
HSVhsv(272, 73%, 60%)
CMYKcmyk(34.2%, 73%, 0%, 40.4%)
CIE-LABlab(30.79, 47.15, -49.97)
CIE-LCHlch(30.79, 68.71, 313.34°)
OKLaboklab(42.44% 0.0965 -0.1422)
OKLCHoklch(42.44% 0.172 304.2)
XYZxyz(11.7147, 6.5622, 30.3492)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642998 #5D9829
analogous
#2C2998 #642998 #982994
triadic
#642998 #986429 #299864
tetradic
#642998 #982C29 #5D9829 #299498
square
#642998 #982C29 #5D9829 #299498
split-complementary
#642998 #949829 #29982C
monochromatic
#250F38 #441C68 #642998 #8436C8 #A166D6

Accessibility & contrast

On white

9.08
#642998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#642998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642998
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642998#FFFFFF#000000##FFFFFF
##6429981.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#5A445E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642998;
/* rgb */ color: rgb(100, 41, 152);
/* oklch */ color: oklch(42.4% 0.172 304.2);
Tailwind
colors: {
  custom: {
    50: '#9568b7',
    500: '#642998',
    950: '#000000',
  },
}
SCSS
$custom: #642998;
$custom-light: #9568b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642998",
  "rgb": {
    "r": 100,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 271.892,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42436,
    "c": 0.17185,
    "h": 304.2
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#642998
secondary
#8CBC61
accent
#E1478F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642998

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

Preview Lab → · Contrast checker → · Palette generator →

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