#642EA7#642EA7

#642EA7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.182 H 299.1°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#642EA7
RGBrgb(100, 46, 167)
HSLhsl(267, 57%, 42%)
HSVhsv(267, 72%, 65%)
CMYKcmyk(40.1%, 72.5%, 0%, 34.5%)
CIE-LABlab(32.82, 48.55, -55.77)
CIE-LCHlch(32.82, 73.94, 311.04°)
OKLaboklab(44.25% 0.0886 -0.1592)
OKLCHoklch(44.25% 0.182 299.1)
XYZxyz(13.2058, 7.4532, 37.2946)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EA7 #71A72E
analogous
#2E34A7 #642EA7 #A12EA7
triadic
#642EA7 #A7642E #2EA764
tetradic
#642EA7 #A72E34 #71A72E #2EA7A1
square
#642EA7 #A72E34 #71A72E #2EA7A1
split-complementary
#642EA7 #A7A12E #34A72E
monochromatic
#2B1447 #472177 #642EA7 #8246CC #A276D9

Accessibility & contrast

On white

8.43
#642EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#642EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EA7
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EA7#FFFFFF#000000##FFFFFF
##642EA71.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#544C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642ea7;
/* rgb */ color: rgb(100, 46, 167);
/* oklch */ color: oklch(44.2% 0.182 299.1);
Tailwind
colors: {
  custom: {
    50: '#966cc2',
    500: '#642ea7',
    950: '#000000',
  },
}
SCSS
$custom: #642ea7;
$custom-light: #966cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#642ea7",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 266.777,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44246,
    "c": 0.18224,
    "h": 299.1
  },
  "luminance": 0.07453
}

Semantic roles & 50–950 ramp

primary
#642EA7
secondary
#9DC170
accent
#E0489C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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