#B640AB#B640AB

#B640AB is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.4% C 0.195 H 331.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B640AB
RGBrgb(182, 64, 171)
HSLhsl(306, 48%, 48%)
HSVhsv(306, 65%, 71%)
CMYKcmyk(0%, 64.8%, 6%, 28.6%)
CIE-LABlab(47.69, 60.02, -33.68)
CIE-LCHlch(47.69, 68.83, 330.70°)
OKLaboklab(57.45% 0.1716 -0.0924)
OKLCHoklch(57.45% 0.195 331.7)
XYZxyz(28.4755, 16.5543, 40.2157)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640AB #40B64B
analogous
#8640B6 #B640AB #B64070
triadic
#B640AB #ABB640 #40ABB6
tetradic
#B640AB #B68640 #40B64B #4070B6
square
#B640AB #B68640 #40B64B #4070B6
split-complementary
#B640AB #70B640 #40B686
monochromatic
#5B2056 #893080 #B640AB #CA69C1 #DA96D4

Accessibility & contrast

On white

4.87
#B640AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B640AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B640AB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640AB#FFFFFF#000000##FFFFFF
##B640AB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#BD4B70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b640ab;
/* rgb */ color: rgb(182, 64, 171);
/* oklch */ color: oklch(57.4% 0.195 331.7);
Tailwind
colors: {
  custom: {
    50: '#cf7dc4',
    500: '#b640ab',
    950: '#000000',
  },
}
SCSS
$custom: #b640ab;
$custom-light: #cf7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#b640ab",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 305.593,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57448,
    "c": 0.19489,
    "h": 331.7
  },
  "luminance": 0.16552
}

Semantic roles & 50–950 ramp

primary
#B640AB
secondary
#8CC691
accent
#D85D50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B640AB

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

Preview Lab → · Contrast checker → · Palette generator →

#B640AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva