#B640AF#B640AF

#B640AF is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.7% C 0.198 H 330.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B640AF
RGBrgb(182, 64, 175)
HSLhsl(304, 48%, 48%)
HSVhsv(304, 65%, 71%)
CMYKcmyk(0%, 64.8%, 3.8%, 28.6%)
CIE-LABlab(47.89, 60.68, -35.72)
CIE-LCHlch(47.89, 70.42, 329.51°)
OKLaboklab(57.66% 0.1719 -0.0983)
OKLCHoklch(57.66% 0.198 330.2)
XYZxyz(28.8625, 16.7091, 42.2541)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640AF #40B647
analogous
#8240B6 #B640AF #B64074
triadic
#B640AF #AFB640 #40AFB6
tetradic
#B640AF #B68240 #40B647 #4074B6
square
#B640AF #B68240 #40B647 #4074B6
split-complementary
#B640AF #74B640 #40B682
monochromatic
#5B2058 #893083 #B640AF #CA69C4 #DA96D6

Accessibility & contrast

On white

4.84
#B640AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B640AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B640AF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640AF#FFFFFF#000000##FFFFFF
##B640AF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#BD4D72
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b640af;
/* rgb */ color: rgb(182, 64, 175);
/* oklch */ color: oklch(57.7% 0.198 330.2);
Tailwind
colors: {
  custom: {
    50: '#cf7ec7',
    500: '#b640af',
    950: '#000000',
  },
}
SCSS
$custom: #b640af;
$custom-light: #cf7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b640af",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 303.559,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57656,
    "c": 0.19804,
    "h": 330.2
  },
  "luminance": 0.16707
}

Semantic roles & 50–950 ramp

primary
#B640AF
secondary
#8CC68F
accent
#D85850
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B640AF

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

Preview Lab → · Contrast checker → · Palette generator →

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