#BA38AF#BA38AF

#BA38AF is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.210 H 331.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA38AF
RGBrgb(186, 56, 175)
HSLhsl(305, 54%, 47%)
HSVhsv(305, 70%, 73%)
CMYKcmyk(0%, 69.9%, 5.9%, 27.1%)
CIE-LABlab(47.45, 64.66, -36.38)
CIE-LCHlch(47.45, 74.19, 330.64°)
OKLaboklab(57.46% 0.1849 -0.1)
OKLCHoklch(57.46% 0.21 331.6)
XYZxyz(29.4017, 16.3649, 42.1593)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38AF #38BA43
analogous
#8438BA #BA38AF #BA386E
triadic
#BA38AF #AFBA38 #38AFBA
tetradic
#BA38AF #BA8438 #38BA43 #386EBA
square
#BA38AF #BA8438 #38BA43 #386EBA
split-complementary
#BA38AF #6EBA38 #38BA84
monochromatic
#5C1C56 #8B2A83 #BA38AF #CF60C6 #DD8FD7

Accessibility & contrast

On white

4.92
#BA38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BA38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38AF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38AF#FFFFFF#000000##FFFFFF
##BA38AF1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#C2466F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba38af;
/* rgb */ color: rgb(186, 56, 175);
/* oklch */ color: oklch(57.5% 0.210 331.6);
Tailwind
colors: {
  custom: {
    50: '#d27ac7',
    500: '#ba38af',
    950: '#000000',
  },
}
SCSS
$custom: #ba38af;
$custom-light: #d27ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38af",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 305.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57461,
    "c": 0.21021,
    "h": 331.6
  },
  "luminance": 0.16363
}

Semantic roles & 50–950 ramp

primary
#BA38AF
secondary
#86C88B
accent
#DD574B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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