#BA5FA2#BA5FA2

#BA5FA2 is a mid, vivid pink. Relative luminance 0.212; OKLCH L 61.5% C 0.143 H 338.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA5FA2
RGBrgb(186, 95, 162)
HSLhsl(316, 40%, 55%)
HSVhsv(316, 49%, 73%)
CMYKcmyk(0%, 48.9%, 12.9%, 27.1%)
CIE-LABlab(53.20, 45.37, -19.80)
CIE-LCHlch(53.20, 49.50, 336.42°)
OKLaboklab(61.5% 0.1326 -0.0532)
OKLCHoklch(61.5% 0.143 338.1)
XYZxyz(30.8637, 21.2343, 36.6484)
Luminance0.2123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FA2 #5FBA77
analogous
#A45FBA #BA5FA2 #BA5F75
triadic
#BA5FA2 #A2BA5F #5FA2BA
tetradic
#BA5FA2 #BAA45F #5FBA77 #5F75BA
square
#BA5FA2 #BAA45F #5FBA77 #5F75BA
split-complementary
#BA5FA2 #75BA5F #5FBAA4
monochromatic
#6F305E #9A4283 #BA5FA2 #CC8ABB #DFB5D4

Accessibility & contrast

On white

4.00
#BA5FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#BA5FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FA2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FA2#FFFFFF#000000##000000
##BA5FA21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6276A4
Deuteranopia (green-blind)
#7B84A0
Tritanopia (blue-blind)
#C36279
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5fa2;
/* rgb */ color: rgb(186, 95, 162);
/* oklch */ color: oklch(61.5% 0.143 338.1);
Tailwind
colors: {
  custom: {
    50: '#d18fbd',
    500: '#ba5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fa2;
$custom-light: #d18fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fa2",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 315.824,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61497,
    "c": 0.14291,
    "h": 338.1
  },
  "luminance": 0.21232
}

Semantic roles & 50–950 ramp

primary
#BA5FA2
secondary
#A7CDB1
accent
#D07858
background
#FDF9FB
surface
#FAF1F6
border
#D3CBD0
text
#140D12
muted
#837E81

Preview Lab

Preview with #BA5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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