#BA98BF#BA98BF

#BA98BF is a light, moderate purple. Relative luminance 0.367; OKLCH L 72.3% C 0.067 H 322.0°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#BA98BF
RGBrgb(186, 152, 191)
HSLhsl(292, 23%, 67%)
HSVhsv(292, 20%, 75%)
CMYKcmyk(2.6%, 20.4%, 0%, 25.1%)
CIE-LABlab(67.02, 19.58, -15.37)
CIE-LCHlch(67.02, 24.89, 321.87°)
OKLaboklab(72.33% 0.053 -0.0414)
OKLCHoklch(72.33% 0.067 322)
XYZxyz(40.8807, 36.6579, 54.2023)
Luminance0.3666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98BF #9DBF98
analogous
#A798BF #BA98BF #BF98B0
triadic
#BA98BF #BFBA98 #98BFBA
tetradic
#BA98BF #BFA798 #9DBF98 #98B0BF
square
#BA98BF #BFA798 #9DBF98 #98B0BF
split-complementary
#BA98BF #B0BF98 #98BFA7
monochromatic
#815588 #A172A8 #BA98BF #D3BED6 #EDE3EE

Accessibility & contrast

On white

2.52
#BA98BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#BA98BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98BF
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98BF#FFFFFF#000000##000000
##BA98BF1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#95A1C1
Deuteranopia (green-blind)
#9CA4BE
Tritanopia (blue-blind)
#BB9CA5
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba98bf;
/* rgb */ color: rgb(186, 152, 191);
/* oklch */ color: oklch(72.3% 0.067 322.0);
Tailwind
colors: {
  custom: {
    50: '#cfb6d2',
    500: '#ba98bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba98bf;
$custom-light: #cfb6d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98bf",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 191
  },
  "hsl": {
    "h": 292.308,
    "s": 23.353,
    "l": 67.255
  },
  "oklch": {
    "l": 0.72326,
    "c": 0.06723,
    "h": 322
  },
  "luminance": 0.36657
}

Semantic roles & 50–950 ramp

primary
#BA98BF
secondary
#D5E0D3
accent
#A24450
background
#FCFBFC
surface
#F9F6F9
border
#D2D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #BA98BF

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

Preview Lab → · Contrast checker → · Palette generator →

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