#642D8D#642D8D

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

Color values

HEX#642D8D
RGBrgb(100, 45, 141)
HSLhsl(274, 52%, 36%)
HSVhsv(274, 68%, 55%)
CMYKcmyk(29.1%, 68.1%, 0%, 44.7%)
CIE-LABlab(30.66, 42.53, -43.42)
CIE-LCHlch(30.66, 60.78, 314.41°)
OKLaboklab(42.09% 0.0936 -0.1229)
OKLCHoklch(42.09% 0.155 307.3)
XYZxyz(11.0006, 6.5093, 25.8710)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D8D #568D2D
analogous
#342D8D #642D8D #8D2D86
triadic
#642D8D #8D642D #2D8D64
tetradic
#642D8D #8D342D #568D2D #2D868D
square
#642D8D #8D342D #568D2D #2D868D
split-complementary
#642D8D #868D2D #2D8D34
monochromatic
#220F30 #431E5F #642D8D #853CBB #A266CE

Accessibility & contrast

On white

9.12
#642D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D8D
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D8D#FFFFFF#000000##FFFFFF
##642D8D1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#17498B
Tritanopia (blue-blind)
#5D4259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642d8d;
/* rgb */ color: rgb(100, 45, 141);
/* oklch */ color: oklch(42.1% 0.155 307.3);
Tailwind
colors: {
  custom: {
    50: '#946aaf',
    500: '#642d8d',
    950: '#000000',
  },
}
SCSS
$custom: #642d8d;
$custom-light: #946aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#642d8d",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 274.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42087,
    "c": 0.15454,
    "h": 307.3
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

primary
#642D8D
secondary
#85B561
accent
#DB4D8A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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