#BA98DB#BA98DB

#BA98DB is a light, moderate violet. Relative luminance 0.380; OKLCH L 73.4% C 0.101 H 307.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#BA98DB
RGBrgb(186, 152, 219)
HSLhsl(270, 48%, 73%)
HSVhsv(270, 31%, 86%)
CMYKcmyk(15.1%, 30.6%, 0%, 14.1%)
CIE-LABlab(68.03, 25.36, -29.37)
CIE-LCHlch(68.03, 38.81, 310.81°)
OKLaboklab(73.43% 0.0613 -0.0807)
OKLCHoklch(73.43% 0.101 307.2)
XYZxyz(44.2617, 38.0104, 72.0091)
Luminance0.3801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98DB #B9DB98
analogous
#9998DB #BA98DB #DB98DA
triadic
#BA98DB #DBBA98 #98DBBA
tetradic
#BA98DB #DB9998 #B9DB98 #98DADB
square
#BA98DB #DB9998 #B9DB98 #98DADB
split-complementary
#BA98DB #DADB98 #98DB99
monochromatic
#7D40B8 #9C6BCB #BA98DB #D8C5EB #F0E8F7

Accessibility & contrast

On white

2.44
#BA98DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#BA98DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98DB
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98DB#FFFFFF#000000##000000
##BA98DB1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA4DE
Deuteranopia (green-blind)
#92A6D9
Tritanopia (blue-blind)
#B6A1B0
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba98db;
/* rgb */ color: rgb(186, 152, 219);
/* oklch */ color: oklch(73.4% 0.101 307.2);
Tailwind
colors: {
  custom: {
    50: '#cfb6e6',
    500: '#ba98db',
    950: '#000000',
  },
}
SCSS
$custom: #ba98db;
$custom-light: #cfb6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98db",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 270.448,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73434,
    "c": 0.10133,
    "h": 307.2
  },
  "luminance": 0.3801
}

Semantic roles & 50–950 ramp

primary
#BA98DB
secondary
#E5EEDD
accent
#BB2A72
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA98DB

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

Preview Lab → · Contrast checker → · Palette generator →

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