#642A90#642A90

#642A90 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.162 H 306.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#642A90
RGBrgb(100, 42, 144)
HSLhsl(274, 55%, 36%)
HSVhsv(274, 71%, 56%)
CMYKcmyk(30.6%, 70.8%, 0%, 43.5%)
CIE-LABlab(30.35, 44.74, -45.78)
CIE-LCHlch(30.35, 64.01, 314.34°)
OKLaboklab(41.93% 0.0967 -0.1299)
OKLCHoklch(41.93% 0.162 306.7)
XYZxyz(11.1165, 6.3790, 27.0258)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A90 #56902A
analogous
#312A90 #642A90 #902A89
triadic
#642A90 #90642A #2A9064
tetradic
#642A90 #90312A #56902A #2A8990
square
#642A90 #90312A #56902A #2A8990
split-complementary
#642A90 #89902A #2A9031
monochromatic
#220E31 #431C61 #642A90 #8538BF #A263D1

Accessibility & contrast

On white

9.23
#642A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A90
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A90#FFFFFF#000000##FFFFFF
##642A901.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#0A488E
Tritanopia (blue-blind)
#5D415A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642a90;
/* rgb */ color: rgb(100, 42, 144);
/* oklch */ color: oklch(41.9% 0.162 306.7);
Tailwind
colors: {
  custom: {
    50: '#9468b1',
    500: '#642a90',
    950: '#000000',
  },
}
SCSS
$custom: #642a90;
$custom-light: #9468b1;
$custom-dark: #000000;
JSON
{
  "hex": "#642a90",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 274.118,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41931,
    "c": 0.16193,
    "h": 306.7
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#642A90
secondary
#85B75E
accent
#DE4A8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642A90

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

Preview Lab → · Contrast checker → · Palette generator →

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