#640F5A#640F5A

#640F5A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.143 H 333.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#640F5A
RGBrgb(100, 15, 90)
HSLhsl(307, 74%, 23%)
HSVhsv(307, 85%, 39%)
CMYKcmyk(0%, 85%, 10%, 60.8%)
CIE-LABlab(22.96, 44.31, -23.11)
CIE-LCHlch(22.96, 49.98, 332.45°)
OKLaboklab(35.5% 0.1286 -0.0635)
OKLCHoklch(35.5% 0.143 333.7)
XYZxyz(7.2719, 3.7898, 10.0194)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#640F5A #0F6419
analogous
#440F64 #640F5A #640F2F
triadic
#640F5A #5A640F #0F5A64
tetradic
#640F5A #64440F #0F6419 #0F2F64
square
#640F5A #64440F #0F6419 #0F2F64
split-complementary
#640F5A #2F640F #0F6444
monochromatic
#1B0418 #2F072A #640F5A #99178A #CE1FBA

Accessibility & contrast

On white

11.95
#640F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#640F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #640F5A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##640F5A#FFFFFF#000000##FFFFFF
##640F5A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5C
Deuteranopia (green-blind)
#2E3B58
Tritanopia (blue-blind)
#691935
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #640f5a;
/* rgb */ color: rgb(100, 15, 90);
/* oklch */ color: oklch(35.5% 0.143 333.7);
Tailwind
colors: {
  custom: {
    50: '#935a89',
    500: '#640f5a',
    950: '#000000',
  },
}
SCSS
$custom: #640f5a;
$custom-light: #935a89;
$custom-dark: #000000;
JSON
{
  "hex": "#640f5a",
  "rgb": {
    "r": 100,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 307.059,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.355,
    "c": 0.14336,
    "h": 333.7
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#640F5A
secondary
#329D3E
accent
#F14D37
background
#F9F5F8
surface
#F2E9F0
border
#CCC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #640F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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