#642D90#642D90

#642D90 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.158 H 306.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#642D90
RGBrgb(100, 45, 144)
HSLhsl(273, 52%, 37%)
HSVhsv(273, 69%, 56%)
CMYKcmyk(30.6%, 68.7%, 0%, 43.5%)
CIE-LABlab(30.88, 43.27, -44.92)
CIE-LCHlch(30.88, 62.37, 313.92°)
OKLaboklab(42.31% 0.0933 -0.1274)
OKLCHoklch(42.31% 0.158 306.2)
XYZxyz(11.2269, 6.5998, 27.0626)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D90 #59902D
analogous
#322D90 #642D90 #902D8B
triadic
#642D90 #90642D #2D9064
tetradic
#642D90 #90322D #59902D #2D8B90
square
#642D90 #90322D #59902D #2D8B90
split-complementary
#642D90 #8B902D #2D9032
monochromatic
#231033 #441E61 #642D90 #843CBF #A168D0

Accessibility & contrast

On white

9.05
#642D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#642D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D90
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D90#FFFFFF#000000##FFFFFF
##642D901.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004793
Deuteranopia (green-blind)
#11498E
Tritanopia (blue-blind)
#5C435B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642d90;
/* rgb */ color: rgb(100, 45, 144);
/* oklch */ color: oklch(42.3% 0.158 306.2);
Tailwind
colors: {
  custom: {
    50: '#946ab1',
    500: '#642d90',
    950: '#000000',
  },
}
SCSS
$custom: #642d90;
$custom-light: #946ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#642d90",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 273.333,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4231,
    "c": 0.1579,
    "h": 306.2
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#642D90
secondary
#88B662
accent
#DC4C8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642D90

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

Preview Lab → · Contrast checker → · Palette generator →

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