#642E90#642E90

#642E90 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.157 H 306.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#642E90
RGBrgb(100, 46, 144)
HSLhsl(273, 52%, 37%)
HSVhsv(273, 68%, 56%)
CMYKcmyk(30.6%, 68.1%, 0%, 43.5%)
CIE-LABlab(31.06, 42.76, -44.63)
CIE-LCHlch(31.06, 61.81, 313.78°)
OKLaboklab(42.44% 0.0922 -0.1265)
OKLCHoklch(42.44% 0.157 306.1)
XYZxyz(11.2655, 6.6770, 27.0755)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E90 #5A902E
analogous
#332E90 #642E90 #902E8B
triadic
#642E90 #90642E #2E9064
tetradic
#642E90 #90332E #5A902E #2E8B90
square
#642E90 #90332E #5A902E #2E8B90
split-complementary
#642E90 #8B902E #2E9033
monochromatic
#241033 #441F62 #642E90 #843DBE #A169CF

Accessibility & contrast

On white

8.99
#642E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#642E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E90
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E90#FFFFFF#000000##FFFFFF
##642E901.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642e90;
/* rgb */ color: rgb(100, 46, 144);
/* oklch */ color: oklch(42.4% 0.157 306.1);
Tailwind
colors: {
  custom: {
    50: '#946bb1',
    500: '#642e90',
    950: '#000000',
  },
}
SCSS
$custom: #642e90;
$custom-light: #946bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#642e90",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 273.061,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4244,
    "c": 0.15651,
    "h": 306.1
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#642E90
secondary
#89B664
accent
#DB4D8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642E90

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

Preview Lab → · Contrast checker → · Palette generator →

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