#640F5F#640F5F

#640F5F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.147 H 330.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#640F5F
RGBrgb(100, 15, 95)
HSLhsl(304, 74%, 23%)
HSVhsv(304, 85%, 39%)
CMYKcmyk(0%, 85%, 5%, 60.8%)
CIE-LABlab(23.26, 45.14, -25.95)
CIE-LCHlch(23.26, 52.07, 330.11°)
OKLaboklab(35.81% 0.1286 -0.0717)
OKLCHoklch(35.81% 0.147 330.9)
XYZxyz(7.4919, 3.8778, 11.1782)
Luminance0.0388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#640F5F #0F6414
analogous
#3E0F64 #640F5F #640F35
triadic
#640F5F #5F640F #0F5F64
tetradic
#640F5F #643E0F #0F6414 #0F3564
square
#640F5F #643E0F #0F6414 #0F3564
split-complementary
#640F5F #35640F #0F643E
monochromatic
#1B0419 #2F072C #640F5F #991792 #CE1FC4

Accessibility & contrast

On white

11.83
#640F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#640F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #640F5F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##640F5F#FFFFFF#000000##FFFFFF
##640F5F1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033061
Deuteranopia (green-blind)
#2C3B5D
Tritanopia (blue-blind)
#681C37
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #640f5f;
/* rgb */ color: rgb(100, 15, 95);
/* oklch */ color: oklch(35.8% 0.147 330.9);
Tailwind
colors: {
  custom: {
    50: '#935a8d',
    500: '#640f5f',
    950: '#000000',
  },
}
SCSS
$custom: #640f5f;
$custom-light: #935a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#640f5f",
  "rgb": {
    "r": 100,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 303.529,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3581,
    "c": 0.14723,
    "h": 330.9
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#640F5F
secondary
#329D38
accent
#F14237
background
#F9F5F8
surface
#F2E9F0
border
#CCC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #640F5F

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

Preview Lab → · Contrast checker → · Palette generator →

#640F5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva