#640F56#640F56

#640F56 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.140 H 336.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#640F56
RGBrgb(100, 15, 86)
HSLhsl(310, 74%, 23%)
HSVhsv(310, 85%, 39%)
CMYKcmyk(0%, 85%, 14%, 60.8%)
CIE-LABlab(22.74, 43.67, -20.81)
CIE-LCHlch(22.74, 48.38, 334.53°)
OKLaboklab(35.26% 0.1283 -0.0568)
OKLCHoklch(35.26% 0.14 336.1)
XYZxyz(7.1062, 3.7235, 9.1468)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#640F56 #0F641D
analogous
#470F64 #640F56 #640F2C
triadic
#640F56 #56640F #0F5664
tetradic
#640F56 #64470F #0F641D #0F2C64
square
#640F56 #64470F #0F641D #0F2C64
split-complementary
#640F56 #2C640F #0F6447
monochromatic
#1B0417 #2F0728 #640F56 #991784 #CE1FB2

Accessibility & contrast

On white

12.04
#640F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#640F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #640F56
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##640F56#FFFFFF#000000##FFFFFF
##640F561.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E58
Deuteranopia (green-blind)
#303B54
Tritanopia (blue-blind)
#6A1632
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #640f56;
/* rgb */ color: rgb(100, 15, 86);
/* oklch */ color: oklch(35.3% 0.140 336.1);
Tailwind
colors: {
  custom: {
    50: '#935a86',
    500: '#640f56',
    950: '#000000',
  },
}
SCSS
$custom: #640f56;
$custom-light: #935a86;
$custom-dark: #000000;
JSON
{
  "hex": "#640f56",
  "rgb": {
    "r": 100,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 309.882,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35263,
    "c": 0.14034,
    "h": 336.1
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#640F56
secondary
#329D44
accent
#F15637
background
#F9F5F8
surface
#F2E9EF
border
#CCC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #640F56

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

Preview Lab → · Contrast checker → · Palette generator →

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