#642EA3#642EA3

#642EA3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.178 H 300.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#642EA3
RGBrgb(100, 46, 163)
HSLhsl(268, 56%, 41%)
HSVhsv(268, 72%, 64%)
CMYKcmyk(38.7%, 71.8%, 0%, 36.1%)
CIE-LABlab(32.50, 47.53, -53.88)
CIE-LCHlch(32.50, 71.85, 311.42°)
OKLaboklab(43.92% 0.0894 -0.1537)
OKLCHoklch(43.92% 0.178 300.2)
XYZxyz(12.8417, 7.3075, 35.3772)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA3 #6DA32E
analogous
#2E32A3 #642EA3 #9E2EA3
triadic
#642EA3 #A3642E #2EA364
tetradic
#642EA3 #A32E32 #6DA32E #2EA39E
square
#642EA3 #A32E32 #6DA32E #2EA39E
split-complementary
#642EA3 #A39E2E #32A32E
monochromatic
#291344 #472173 #642EA3 #8244CA #A274D8

Accessibility & contrast

On white

8.53
#642EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#642EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EA3
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA3#FFFFFF#000000##FFFFFF
##642EA31.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#004CA1
Tritanopia (blue-blind)
#564B65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642ea3;
/* rgb */ color: rgb(100, 46, 163);
/* oklch */ color: oklch(43.9% 0.178 300.2);
Tailwind
colors: {
  custom: {
    50: '#966bbf',
    500: '#642ea3',
    950: '#000000',
  },
}
SCSS
$custom: #642ea3;
$custom-light: #966bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea3",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 267.692,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43919,
    "c": 0.1778,
    "h": 300.2
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

primary
#642EA3
secondary
#9ABF6D
accent
#DF499A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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