#642EAF#642EAF

#642EAF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.191 H 297.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#642EAF
RGBrgb(100, 46, 175)
HSLhsl(265, 58%, 43%)
HSVhsv(265, 74%, 69%)
CMYKcmyk(42.9%, 73.7%, 0%, 31.4%)
CIE-LABlab(33.47, 50.61, -59.49)
CIE-LCHlch(33.47, 78.10, 310.39°)
OKLaboklab(44.92% 0.0869 -0.1702)
OKLCHoklch(44.92% 0.191 297.1)
XYZxyz(13.9684, 7.7582, 41.3107)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EAF #79AF2E
analogous
#2E39AF #642EAF #A42EAF
triadic
#642EAF #AF642E #2EAF64
tetradic
#642EAF #AF2E39 #79AF2E #2EAFA4
square
#642EAF #AF2E39 #79AF2E #2EAFA4
split-complementary
#642EAF #AFA42E #39AF2E
monochromatic
#2D154E #48217F #642EAF #824BD0 #A47BDC

Accessibility & contrast

On white

8.23
#642EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#642EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EAF
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EAF#FFFFFF#000000##FFFFFF
##642EAF1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#514F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642eaf;
/* rgb */ color: rgb(100, 46, 175);
/* oklch */ color: oklch(44.9% 0.191 297.1);
Tailwind
colors: {
  custom: {
    50: '#976cc8',
    500: '#642eaf',
    950: '#000000',
  },
}
SCSS
$custom: #642eaf;
$custom-light: #976cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#642eaf",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 265.116,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44916,
    "c": 0.19109,
    "h": 297.1
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#642EAF
secondary
#A3C574
accent
#E246A1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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