#BA99CC#BA99CC

#BA99CC is a light, moderate violet. Relative luminance 0.376; OKLCH L 73.0% C 0.081 H 313.5°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#BA99CC
RGBrgb(186, 153, 204)
HSLhsl(279, 33%, 70%)
HSVhsv(279, 25%, 80%)
CMYKcmyk(8.8%, 25%, 0%, 20%)
CIE-LABlab(67.71, 21.63, -21.55)
CIE-LCHlch(67.71, 30.54, 315.10°)
OKLaboklab(73.01% 0.0556 -0.0586)
OKLCHoklch(73.01% 0.081 313.5)
XYZxyz(42.5383, 37.5817, 62.1281)
Luminance0.3758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA99CC #ABCC99
analogous
#A199CC #BA99CC #CC99C4
triadic
#BA99CC #CCBA99 #99CCBA
tetradic
#BA99CC #CCA199 #ABCC99 #99C4CC
square
#BA99CC #CCA199 #ABCC99 #99C4CC
split-complementary
#BA99CC #C4CC99 #99CCA1
monochromatic
#814E9C #9E70B8 #BA99CC #D6C2E0 #F1EBF5

Accessibility & contrast

On white

2.47
#BA99CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#BA99CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA99CC
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA99CC#FFFFFF#000000##000000
##BA99CC1.002.478.528.52
#FFFFFF2.471.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A3CE
Deuteranopia (green-blind)
#99A6CA
Tritanopia (blue-blind)
#B99FAB
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ba99cc;
/* rgb */ color: rgb(186, 153, 204);
/* oklch */ color: oklch(73.0% 0.081 313.5);
Tailwind
colors: {
  custom: {
    50: '#cfb7db',
    500: '#ba99cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba99cc;
$custom-light: #cfb7db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba99cc",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 204
  },
  "hsl": {
    "h": 278.824,
    "s": 33.333,
    "l": 70
  },
  "oklch": {
    "l": 0.73007,
    "c": 0.08078,
    "h": 313.5
  },
  "luminance": 0.37581
}

Semantic roles & 50–950 ramp

primary
#BA99CC
secondary
#DEE8D9
accent
#AC3962
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#141115
muted
#828083

Preview Lab

Preview with #BA99CC

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

Preview Lab → · Contrast checker → · Palette generator →

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