#642E92#642E92

#642E92 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.159 H 305.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#642E92
RGBrgb(100, 46, 146)
HSLhsl(272, 52%, 38%)
HSVhsv(272, 68%, 57%)
CMYKcmyk(31.5%, 68.5%, 0%, 42.7%)
CIE-LABlab(31.20, 43.25, -45.63)
CIE-LCHlch(31.20, 62.87, 313.47°)
OKLaboklab(42.59% 0.0919 -0.1294)
OKLCHoklch(42.59% 0.159 305.4)
XYZxyz(11.4197, 6.7387, 27.8877)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E92 #5C922E
analogous
#322E92 #642E92 #922E8E
triadic
#642E92 #92642E #2E9264
tetradic
#642E92 #92322E #5C922E #2E8E92
square
#642E92 #92322E #5C922E #2E8E92
split-complementary
#642E92 #8E922E #2E9232
monochromatic
#241135 #441F63 #642E92 #843DC1 #A16AD0

Accessibility & contrast

On white

8.94
#642E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#642E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E92
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E92#FFFFFF#000000##FFFFFF
##642E921.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#0F4A90
Tritanopia (blue-blind)
#5C445C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642e92;
/* rgb */ color: rgb(100, 46, 146);
/* oklch */ color: oklch(42.6% 0.159 305.4);
Tailwind
colors: {
  custom: {
    50: '#946bb3',
    500: '#642e92',
    950: '#000000',
  },
}
SCSS
$custom: #642e92;
$custom-light: #946bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#642e92",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 272.4,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4259,
    "c": 0.15876,
    "h": 305.4
  },
  "luminance": 0.06739
}

Semantic roles & 50–950 ramp

primary
#642E92
secondary
#8BB765
accent
#DC4C8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642E92

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

Preview Lab → · Contrast checker → · Palette generator →

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