#BA97DC#BA97DC

#BA97DC is a light, moderate violet. Relative luminance 0.377; OKLCH L 73.3% C 0.104 H 307.2°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#BA97DC
RGBrgb(186, 151, 220)
HSLhsl(270, 50%, 73%)
HSVhsv(270, 31%, 86%)
CMYKcmyk(15.5%, 31.4%, 0%, 13.7%)
CIE-LABlab(67.83, 26.14, -30.23)
CIE-LCHlch(67.83, 39.97, 310.85°)
OKLaboklab(73.29% 0.063 -0.0831)
OKLCHoklch(73.29% 0.104 307.2)
XYZxyz(44.2321, 37.7399, 72.6506)
Luminance0.3774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97DC #B9DC97
analogous
#9897DC #BA97DC #DC97DB
triadic
#BA97DC #DCBA97 #97DCBA
tetradic
#BA97DC #DC9897 #B9DC97 #97DBDC
square
#BA97DC #DC9897 #B9DC97 #97DBDC
split-complementary
#BA97DC #DBDC97 #97DC98
monochromatic
#7D3FBA #9C69CD #BA97DC #D8C5EB #F0E8F7

Accessibility & contrast

On white

2.46
#BA97DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#BA97DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97DC
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97DC#FFFFFF#000000##000000
##BA97DC1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA4DF
Deuteranopia (green-blind)
#91A6DA
Tritanopia (blue-blind)
#B5A1B0
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ba97dc;
/* rgb */ color: rgb(186, 151, 220);
/* oklch */ color: oklch(73.3% 0.104 307.2);
Tailwind
colors: {
  custom: {
    50: '#cfb6e7',
    500: '#ba97dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba97dc;
$custom-light: #cfb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97dc",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 270.435,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73294,
    "c": 0.10431,
    "h": 307.2
  },
  "luminance": 0.3774
}

Semantic roles & 50–950 ramp

primary
#BA97DC
secondary
#E5EEDD
accent
#BD2972
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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