#642E8B#642E8B

#642E8B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.151 H 307.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#642E8B
RGBrgb(100, 46, 139)
HSLhsl(275, 50%, 36%)
HSVhsv(275, 67%, 55%)
CMYKcmyk(28.1%, 66.9%, 0%, 45.5%)
CIE-LABlab(30.71, 41.54, -42.12)
CIE-LCHlch(30.71, 59.16, 314.61°)
OKLaboklab(42.07% 0.0926 -0.1191)
OKLCHoklch(42.07% 0.151 307.9)
XYZxyz(10.8918, 6.5275, 25.1073)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E8B #558B2E
analogous
#362E8B #642E8B #8B2E84
triadic
#642E8B #8B642E #2E8B64
tetradic
#642E8B #8B362E #558B2E #2E848B
square
#642E8B #8B362E #558B2E #2E848B
split-complementary
#642E8B #848B2E #2E8B36
monochromatic
#22102F #431F5D #642E8B #853DB9 #A267CD

Accessibility & contrast

On white

9.11
#642E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#642E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E8B
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E8B#FFFFFF#000000##FFFFFF
##642E8B1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#5E4158
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642e8b;
/* rgb */ color: rgb(100, 46, 139);
/* oklch */ color: oklch(42.1% 0.151 307.9);
Tailwind
colors: {
  custom: {
    50: '#946bad',
    500: '#642e8b',
    950: '#000000',
  },
}
SCSS
$custom: #642e8b;
$custom-light: #946bad;
$custom-dark: #000000;
JSON
{
  "hex": "#642e8b",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 274.839,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42073,
    "c": 0.15088,
    "h": 307.9
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#642E8B
secondary
#84B361
accent
#DA4E89
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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