#BA5EA2#BA5EA2

#BA5EA2 is a mid, vivid pink. Relative luminance 0.211; OKLCH L 61.4% C 0.145 H 338.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA5EA2
RGBrgb(186, 94, 162)
HSLhsl(316, 40%, 55%)
HSVhsv(316, 49%, 73%)
CMYKcmyk(0%, 49.5%, 12.9%, 27.1%)
CIE-LABlab(53.01, 45.88, -20.10)
CIE-LCHlch(53.01, 50.09, 336.34°)
OKLaboklab(61.35% 0.1341 -0.054)
OKLCHoklch(61.35% 0.145 338.1)
XYZxyz(30.7742, 21.0553, 36.6186)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EA2 #5EBA76
analogous
#A45EBA #BA5EA2 #BA5E74
triadic
#BA5EA2 #A2BA5E #5EA2BA
tetradic
#BA5EA2 #BAA45E #5EBA76 #5E74BA
square
#BA5EA2 #BAA45E #5EBA76 #5E74BA
split-complementary
#BA5EA2 #74BA5E #5EBAA4
monochromatic
#6E2F5E #994282 #BA5EA2 #CC89BB #DFB4D3

Accessibility & contrast

On white

4.03
#BA5EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA5EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EA2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EA2#FFFFFF#000000##000000
##BA5EA21.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6176A4
Deuteranopia (green-blind)
#7A849F
Tritanopia (blue-blind)
#C36179
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5ea2;
/* rgb */ color: rgb(186, 94, 162);
/* oklch */ color: oklch(61.4% 0.145 338.1);
Tailwind
colors: {
  custom: {
    50: '#d18fbd',
    500: '#ba5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ea2;
$custom-light: #d18fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ea2",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 315.652,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61351,
    "c": 0.1446,
    "h": 338.1
  },
  "luminance": 0.21053
}

Semantic roles & 50–950 ramp

primary
#BA5EA2
secondary
#A7CDB1
accent
#D07758
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140D12
muted
#837D81

Preview Lab

Preview with #BA5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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