#BA2ECD#BA2ECD

#BA2ECD is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.4% C 0.244 H 322.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA2ECD
RGBrgb(186, 46, 205)
HSLhsl(293, 63%, 49%)
HSVhsv(293, 78%, 80%)
CMYKcmyk(9.3%, 77.6%, 0%, 19.6%)
CIE-LABlab(48.01, 72.81, -52.96)
CIE-LCHlch(48.01, 90.03, 323.97°)
OKLaboklab(58.4% 0.1933 -0.1482)
OKLCHoklch(58.4% 0.244 322.5)
XYZxyz(32.2450, 16.8028, 59.2906)
Luminance0.1680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2ECD #41CD2E
analogous
#6B2ECD #BA2ECD #CD2E91
triadic
#BA2ECD #CDBA2E #2ECDBA
tetradic
#BA2ECD #CD6B2E #41CD2E #2E91CD
square
#BA2ECD #CD6B2E #41CD2E #2E91CD
split-complementary
#BA2ECD #91CD2E #2ECD6B
monochromatic
#5F1869 #8D239B #BA2ECD #CC5DDB #DC8FE6

Accessibility & contrast

On white

4.82
#BA2ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA2ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2ECD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2ECD#FFFFFF#000000##FFFFFF
##BA2ECD1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#4877C9
Tritanopia (blue-blind)
#BC4E7D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba2ecd;
/* rgb */ color: rgb(186, 46, 205);
/* oklch */ color: oklch(58.4% 0.244 322.5);
Tailwind
colors: {
  custom: {
    50: '#d377dd',
    500: '#ba2ecd',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ecd;
$custom-light: #d377dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ecd",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 205
  },
  "hsl": {
    "h": 292.83,
    "s": 63.347,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58403,
    "c": 0.24357,
    "h": 322.5
  },
  "luminance": 0.16801
}

Semantic roles & 50–950 ramp

primary
#BA2ECD
secondary
#8FD086
accent
#E64155
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA2ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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