#BA98CB#BA98CB

#BA98CB is a light, moderate purple. Relative luminance 0.372; OKLCH L 72.8% C 0.081 H 314.3°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#BA98CB
RGBrgb(186, 152, 203)
HSLhsl(280, 33%, 70%)
HSVhsv(280, 25%, 80%)
CMYKcmyk(8.4%, 25.1%, 0%, 20.4%)
CIE-LABlab(67.43, 21.99, -21.42)
CIE-LCHlch(67.43, 30.70, 315.74°)
OKLaboklab(72.78% 0.0568 -0.0582)
OKLCHoklch(72.78% 0.081 314.3)
XYZxyz(42.2557, 37.2080, 61.4442)
Luminance0.3721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98CB #A9CB98
analogous
#A198CB #BA98CB #CB98C3
triadic
#BA98CB #CBBA98 #98CBBA
tetradic
#BA98CB #CBA198 #A9CB98 #98C3CB
square
#BA98CB #CBA198 #A9CB98 #98C3CB
split-complementary
#BA98CB #C3CB98 #98CBA1
monochromatic
#814E9B #9F6FB6 #BA98CB #D5C1E0 #F0E9F4

Accessibility & contrast

On white

2.49
#BA98CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#BA98CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98CB
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98CB#FFFFFF#000000##000000
##BA98CB1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A2CD
Deuteranopia (green-blind)
#98A5C9
Tritanopia (blue-blind)
#B99EAA
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba98cb;
/* rgb */ color: rgb(186, 152, 203);
/* oklch */ color: oklch(72.8% 0.081 314.3);
Tailwind
colors: {
  custom: {
    50: '#cfb6db',
    500: '#ba98cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba98cb;
$custom-light: #cfb6db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98cb",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 203
  },
  "hsl": {
    "h": 280,
    "s": 32.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72781,
    "c": 0.08133,
    "h": 314.3
  },
  "luminance": 0.37207
}

Semantic roles & 50–950 ramp

primary
#BA98CB
secondary
#DDE7D8
accent
#AC3A60
background
#FCFBFD
surface
#F9F6FA
border
#D2D0D3
text
#141115
muted
#828083

Preview Lab

Preview with #BA98CB

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

Preview Lab → · Contrast checker → · Palette generator →

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