#B640A2#B640A2

#B640A2 is a mid, vivid pink. Relative luminance 0.162; OKLCH L 57.0% C 0.188 H 335.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B640A2
RGBrgb(182, 64, 162)
HSLhsl(310, 48%, 48%)
HSVhsv(310, 65%, 71%)
CMYKcmyk(0%, 64.8%, 11%, 28.6%)
CIE-LABlab(47.27, 58.59, -29.03)
CIE-LCHlch(47.27, 65.39, 333.65°)
OKLaboklab(57% 0.1706 -0.0791)
OKLCHoklch(57% 0.188 335.1)
XYZxyz(27.6466, 16.2228, 35.8506)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640A2 #40B654
analogous
#8F40B6 #B640A2 #B64067
triadic
#B640A2 #A2B640 #40A2B6
tetradic
#B640A2 #B68F40 #40B654 #4067B6
square
#B640A2 #B68F40 #40B654 #4067B6
split-complementary
#B640A2 #67B640 #40B68F
monochromatic
#5B2051 #89307A #B640A2 #CA69BA #DA96CF

Accessibility & contrast

On white

4.95
#B640A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B640A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B640A2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640A2#FFFFFF#000000##FFFFFF
##B640A21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#66769F
Tritanopia (blue-blind)
#BF486B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b640a2;
/* rgb */ color: rgb(182, 64, 162);
/* oklch */ color: oklch(57.0% 0.188 335.1);
Tailwind
colors: {
  custom: {
    50: '#cf7dbe',
    500: '#b640a2',
    950: '#000000',
  },
}
SCSS
$custom: #b640a2;
$custom-light: #cf7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b640a2",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 310.169,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56998,
    "c": 0.18798,
    "h": 335.1
  },
  "luminance": 0.16221
}

Semantic roles & 50–950 ramp

primary
#B640A2
secondary
#8CC696
accent
#D86750
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B640A2

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

Preview Lab → · Contrast checker → · Palette generator →

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