#BA6DB2#BA6DB2

#BA6DB2 is a light, vivid purple. Relative luminance 0.246; OKLCH L 64.3% C 0.132 H 330.8°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#BA6DB2
RGBrgb(186, 109, 178)
HSLhsl(306, 36%, 58%)
HSVhsv(306, 41%, 73%)
CMYKcmyk(0%, 41.4%, 4.3%, 27.1%)
CIE-LABlab(56.68, 40.82, -23.76)
CIE-LCHlch(56.68, 47.23, 329.80°)
OKLaboklab(64.3% 0.1154 -0.0644)
OKLCHoklch(64.3% 0.132 330.8)
XYZxyz(33.7538, 24.5925, 45.0797)
Luminance0.2459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DB2 #6DBA75
analogous
#9B6DBA #BA6DB2 #BA6D8B
triadic
#BA6DB2 #B2BA6D #6DB2BA
tetradic
#BA6DB2 #BA9B6D #6DBA75 #6D8BBA
square
#BA6DB2 #BA9B6D #6DBA75 #6D8BBA
split-complementary
#BA6DB2 #8BBA6D #6DBA9B
monochromatic
#75376F #9F4B96 #BA6DB2 #CE97C8 #E1C0DE

Accessibility & contrast

On white

3.55
#BA6DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#BA6DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DB2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DB2#FFFFFF#000000##000000
##BA6DB21.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A81B4
Deuteranopia (green-blind)
#7F8CB0
Tritanopia (blue-blind)
#C07287
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba6db2;
/* rgb */ color: rgb(186, 109, 178);
/* oklch */ color: oklch(64.3% 0.132 330.8);
Tailwind
colors: {
  custom: {
    50: '#d099c9',
    500: '#ba6db2',
    950: '#000000',
  },
}
SCSS
$custom: #ba6db2;
$custom-light: #d099c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6db2",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 306.234,
    "s": 35.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.643,
    "c": 0.13221,
    "h": 330.8
  },
  "luminance": 0.24591
}

Semantic roles & 50–950 ramp

primary
#BA6DB2
secondary
#B2D1B5
accent
#CC685C
background
#FCF9FC
surface
#F9F2F8
border
#D2CCD1
text
#140E13
muted
#827E82

Preview Lab

Preview with #BA6DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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