#642D8B#642D8B

#642D8B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.152 H 308.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#642D8B
RGBrgb(100, 45, 139)
HSLhsl(275, 51%, 36%)
HSVhsv(275, 68%, 55%)
CMYKcmyk(28.1%, 67.6%, 0%, 45.5%)
CIE-LABlab(30.52, 42.05, -42.41)
CIE-LCHlch(30.52, 59.73, 314.75°)
OKLaboklab(41.94% 0.0938 -0.12)
OKLCHoklch(41.94% 0.152 308)
XYZxyz(10.8532, 6.4503, 25.0944)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D8B #548B2D
analogous
#352D8B #642D8B #8B2D83
triadic
#642D8B #8B642D #2D8B64
tetradic
#642D8B #8B352D #548B2D #2D838B
square
#642D8B #8B352D #548B2D #2D838B
split-complementary
#642D8B #838B2D #2D8B35
monochromatic
#210F2F #431E5D #642D8B #853CB9 #A265CD

Accessibility & contrast

On white

9.17
#642D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D8B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D8B#FFFFFF#000000##FFFFFF
##642D8B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642d8b;
/* rgb */ color: rgb(100, 45, 139);
/* oklch */ color: oklch(41.9% 0.152 308.0);
Tailwind
colors: {
  custom: {
    50: '#946aad',
    500: '#642d8b',
    950: '#000000',
  },
}
SCSS
$custom: #642d8b;
$custom-light: #946aad;
$custom-dark: #000000;
JSON
{
  "hex": "#642d8b",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 275.106,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4194,
    "c": 0.15231,
    "h": 308
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#642D8B
secondary
#83B460
accent
#DB4D88
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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