#642A98#642A98

#642A98 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.171 H 304.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#642A98
RGBrgb(100, 42, 152)
HSLhsl(272, 57%, 38%)
HSVhsv(272, 72%, 60%)
CMYKcmyk(34.2%, 72.4%, 0%, 40.4%)
CIE-LABlab(30.95, 46.69, -49.71)
CIE-LCHlch(30.95, 68.19, 313.21°)
OKLaboklab(42.55% 0.0955 -0.1414)
OKLCHoklch(42.55% 0.171 304)
XYZxyz(11.7497, 6.6323, 30.3608)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A98 #5E982A
analogous
#2D2A98 #642A98 #982A95
triadic
#642A98 #98642A #2A9864
tetradic
#642A98 #982D2A #5E982A #2A9598
square
#642A98 #982D2A #5E982A #2A9598
split-complementary
#642A98 #95982A #2A982D
monochromatic
#251038 #441D68 #642A98 #8437C8 #A167D5

Accessibility & contrast

On white

9.03
#642A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#642A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A98
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A98#FFFFFF#000000##FFFFFF
##642A981.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#5A445E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642a98;
/* rgb */ color: rgb(100, 42, 152);
/* oklch */ color: oklch(42.6% 0.171 304.0);
Tailwind
colors: {
  custom: {
    50: '#9569b7',
    500: '#642a98',
    950: '#000000',
  },
}
SCSS
$custom: #642a98;
$custom-light: #9569b7;
$custom-dark: #000000;
JSON
{
  "hex": "#642a98",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 271.636,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42553,
    "c": 0.17063,
    "h": 304
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#642A98
secondary
#8CBB62
accent
#E04890
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642A98

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

Preview Lab → · Contrast checker → · Palette generator →

#642A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva