#BA507E#BA507E

#BA507E is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.0% C 0.145 H 355.4°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA507E
RGBrgb(186, 80, 126)
HSLhsl(334, 43%, 52%)
HSVhsv(334, 57%, 73%)
CMYKcmyk(0%, 57%, 32.3%, 27.1%)
CIE-LABlab(49.11, 47.56, -4.62)
CIE-LCHlch(49.11, 47.79, 354.45°)
OKLaboklab(58.03% 0.1447 -0.0116)
OKLCHoklch(58.03% 0.145 355.4)
XYZxyz(26.8855, 17.6855, 21.7323)
Luminance0.1768 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA507E #50BA8C
analogous
#BA50B3 #BA507E #BA5750
triadic
#BA507E #7EBA50 #507EBA
tetradic
#BA507E #B3BA50 #50BA8C #5750BA
square
#BA507E #B3BA50 #50BA8C #5750BA
split-complementary
#BA507E #50BA57 #50B3BA
monochromatic
#672944 #933A61 #BA507E #CB7C9E #DDA8BF

Accessibility & contrast

On white

4.63
#BA507E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BA507E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA507E
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA507E#FFFFFF#000000##FFFFFF
##BA507E1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60697F
Deuteranopia (green-blind)
#7C7C7B
Tritanopia (blue-blind)
#C74962
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba507e;
/* rgb */ color: rgb(186, 80, 126);
/* oklch */ color: oklch(58.0% 0.145 355.4);
Tailwind
colors: {
  custom: {
    50: '#d286a3',
    500: '#ba507e',
    950: '#000000',
  },
}
SCSS
$custom: #ba507e;
$custom-light: #d286a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba507e",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 126
  },
  "hsl": {
    "h": 333.962,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58026,
    "c": 0.14512,
    "h": 355.4
  },
  "luminance": 0.17683
}

Semantic roles & 50–950 ramp

primary
#BA507E
secondary
#9CCAB6
accent
#D39C55
background
#FDF8FA
surface
#FAF0F3
border
#D3CBCD
text
#140B0F
muted
#837C7F

Preview Lab

Preview with #BA507E

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

Preview Lab → · Contrast checker → · Palette generator →

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