#B640AA#B640AA

#B640AA is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.194 H 332.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B640AA
RGBrgb(182, 64, 170)
HSLhsl(306, 48%, 48%)
HSVhsv(306, 65%, 71%)
CMYKcmyk(0%, 64.8%, 6.6%, 28.6%)
CIE-LABlab(47.64, 59.86, -33.17)
CIE-LCHlch(47.64, 68.44, 331.01°)
OKLaboklab(57.4% 0.1715 -0.0909)
OKLCHoklch(57.4% 0.194 332.1)
XYZxyz(28.3805, 16.5163, 39.7156)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640AA #40B64C
analogous
#8740B6 #B640AA #B6406F
triadic
#B640AA #AAB640 #40AAB6
tetradic
#B640AA #B68740 #40B64C #406FB6
square
#B640AA #B68740 #40B64C #406FB6
split-complementary
#B640AA #6FB640 #40B687
monochromatic
#5B2055 #893080 #B640AA #CA69C0 #DA96D3

Accessibility & contrast

On white

4.88
#B640AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B640AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B640AA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640AA#FFFFFF#000000##FFFFFF
##B640AA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#6377A7
Tritanopia (blue-blind)
#BD4B6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b640aa;
/* rgb */ color: rgb(182, 64, 170);
/* oklch */ color: oklch(57.4% 0.194 332.1);
Tailwind
colors: {
  custom: {
    50: '#cf7dc3',
    500: '#b640aa',
    950: '#000000',
  },
}
SCSS
$custom: #b640aa;
$custom-light: #cf7dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b640aa",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 306.102,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57397,
    "c": 0.1941,
    "h": 332.1
  },
  "luminance": 0.16514
}

Semantic roles & 50–950 ramp

primary
#B640AA
secondary
#8CC692
accent
#D85E50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B640AA

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

Preview Lab → · Contrast checker → · Palette generator →

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