#642F83#642F83

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

Color values

HEX#642F83
RGBrgb(100, 47, 131)
HSLhsl(278, 47%, 35%)
HSVhsv(278, 64%, 51%)
CMYKcmyk(23.7%, 64.1%, 0%, 48.6%)
CIE-LABlab(30.35, 39.10, -37.71)
CIE-LCHlch(30.35, 54.32, 316.04°)
OKLaboklab(41.65% 0.0918 -0.1062)
OKLCHoklch(41.65% 0.14 310.8)
XYZxyz(10.3680, 6.3813, 22.1539)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F83 #4E832F
analogous
#3A2F83 #642F83 #832F78
triadic
#642F83 #83642F #2F8364
tetradic
#642F83 #833A2F #4E832F #2F7883
square
#642F83 #833A2F #4E832F #2F7883
split-complementary
#642F83 #78832F #2F833A
monochromatic
#1F0F29 #421F56 #642F83 #863FB0 #A365C8

Accessibility & contrast

On white

9.23
#642F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F83
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F83#FFFFFF#000000##FFFFFF
##642F831.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094586
Deuteranopia (green-blind)
#264881
Tritanopia (blue-blind)
#603F54
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642f83;
/* rgb */ color: rgb(100, 47, 131);
/* oklch */ color: oklch(41.6% 0.140 310.8);
Tailwind
colors: {
  custom: {
    50: '#936ba7',
    500: '#642f83',
    950: '#000000',
  },
}
SCSS
$custom: #642f83;
$custom-light: #936ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#642f83",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 277.857,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41646,
    "c": 0.14034,
    "h": 310.8
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#642F83
secondary
#7DAF5F
accent
#D75182
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D070F
muted
#7E7A7F

Preview Lab

Preview with #642F83

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

Preview Lab → · Contrast checker → · Palette generator →

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