#642F82#642F82

#642F82 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.139 H 311.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#642F82
RGBrgb(100, 47, 130)
HSLhsl(278, 47%, 35%)
HSVhsv(278, 64%, 51%)
CMYKcmyk(23.1%, 63.8%, 0%, 49%)
CIE-LABlab(30.29, 38.86, -37.19)
CIE-LCHlch(30.29, 53.79, 316.26°)
OKLaboklab(41.58% 0.0918 -0.1047)
OKLCHoklch(41.58% 0.139 311.2)
XYZxyz(10.3006, 6.3543, 21.7986)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F82 #4D822F
analogous
#3A2F82 #642F82 #822F77
triadic
#642F82 #82642F #2F8264
tetradic
#642F82 #823A2F #4D822F #2F7782
square
#642F82 #823A2F #4D822F #2F7782
split-complementary
#642F82 #77822F #2F823A
monochromatic
#1F0E28 #411F55 #642F82 #873FAF #A364C7

Accessibility & contrast

On white

9.25
#642F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F82
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F82#FFFFFF#000000##FFFFFF
##642F821.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4585
Deuteranopia (green-blind)
#274880
Tritanopia (blue-blind)
#603F54
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642f82;
/* rgb */ color: rgb(100, 47, 130);
/* oklch */ color: oklch(41.6% 0.139 311.2);
Tailwind
colors: {
  custom: {
    50: '#936ba7',
    500: '#642f82',
    950: '#000000',
  },
}
SCSS
$custom: #642f82;
$custom-light: #936ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#642f82",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 278.313,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.13922,
    "h": 311.2
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#642F82
secondary
#7BAE5F
accent
#D75181
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #642F82

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

Preview Lab → · Contrast checker → · Palette generator →

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