#BA59B4#BA59B4

#BA59B4 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.5% C 0.168 H 329.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#BA59B4
RGBrgb(186, 89, 180)
HSLhsl(304, 41%, 54%)
HSVhsv(304, 52%, 73%)
CMYKcmyk(0%, 52.2%, 3.2%, 27.1%)
CIE-LABlab(52.82, 51.42, -30.89)
CIE-LCHlch(52.82, 59.98, 329.01°)
OKLaboklab(61.46% 0.145 -0.0845)
OKLCHoklch(61.46% 0.168 329.8)
XYZxyz(32.0600, 20.8811, 45.5130)
Luminance0.2088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59B4 #59BA5F
analogous
#9059BA #BA59B4 #BA5984
triadic
#BA59B4 #B4BA59 #59B4BA
tetradic
#BA59B4 #BA9059 #59BA5F #5984BA
square
#BA59B4 #BA9059 #59BA5F #5984BA
split-complementary
#BA59B4 #84BA59 #59BA90
monochromatic
#6C2D68 #973F92 #BA59B4 #CC84C8 #DEAFDB

Accessibility & contrast

On white

4.06
#BA59B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#BA59B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59B4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59B4#FFFFFF#000000##000000
##BA59B41.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5376B7
Deuteranopia (green-blind)
#7083B1
Tritanopia (blue-blind)
#C0627E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba59b4;
/* rgb */ color: rgb(186, 89, 180);
/* oklch */ color: oklch(61.5% 0.168 329.8);
Tailwind
colors: {
  custom: {
    50: '#d18cca',
    500: '#ba59b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba59b4;
$custom-light: #d18cca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59b4",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 180
  },
  "hsl": {
    "h": 303.711,
    "s": 41.277,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61457,
    "c": 0.16784,
    "h": 329.8
  },
  "luminance": 0.20879
}

Semantic roles & 50–950 ramp

primary
#BA59B4
secondary
#A3CCA5
accent
#D15E57
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA59B4

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

Preview Lab → · Contrast checker → · Palette generator →

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