#BA38AE#BA38AE

#BA38AE is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.209 H 331.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA38AE
RGBrgb(186, 56, 174)
HSLhsl(306, 54%, 47%)
HSVhsv(306, 70%, 73%)
CMYKcmyk(0%, 69.9%, 6.5%, 27.1%)
CIE-LABlab(47.40, 64.51, -35.87)
CIE-LCHlch(47.40, 73.81, 330.93°)
OKLaboklab(57.41% 0.1848 -0.0985)
OKLCHoklch(57.41% 0.209 331.9)
XYZxyz(29.3039, 16.3258, 41.6440)
Luminance0.1632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38AE #38BA44
analogous
#8538BA #BA38AE #BA386D
triadic
#BA38AE #AEBA38 #38AEBA
tetradic
#BA38AE #BA8538 #38BA44 #386DBA
square
#BA38AE #BA8538 #38BA44 #386DBA
split-complementary
#BA38AE #6DBA38 #38BA85
monochromatic
#5C1C56 #8B2A82 #BA38AE #CF60C5 #DD8FD6

Accessibility & contrast

On white

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

On black

4.26
#BA38AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA38AE#FFFFFF#000000##FFFFFF
##BA38AE1.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B1
Deuteranopia (green-blind)
#6077AB
Tritanopia (blue-blind)
#C2466F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba38ae;
/* rgb */ color: rgb(186, 56, 174);
/* oklch */ color: oklch(57.4% 0.209 331.9);
Tailwind
colors: {
  custom: {
    50: '#d27ac6',
    500: '#ba38ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba38ae;
$custom-light: #d27ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38ae",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 305.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57408,
    "c": 0.20946,
    "h": 331.9
  },
  "luminance": 0.16323
}

Semantic roles & 50–950 ramp

primary
#BA38AE
secondary
#86C88C
accent
#DD584B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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