#BA97DF#BA97DF

#BA97DF is a light, moderate violet. Relative luminance 0.379; OKLCH L 73.4% C 0.108 H 306.2°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#BA97DF
RGBrgb(186, 151, 223)
HSLhsl(269, 53%, 73%)
HSVhsv(269, 32%, 87%)
CMYKcmyk(16.6%, 32.3%, 0%, 12.5%)
CIE-LABlab(67.95, 26.79, -31.71)
CIE-LCHlch(67.95, 41.51, 310.20°)
OKLaboklab(73.42% 0.0638 -0.0873)
OKLCHoklch(73.42% 0.108 306.2)
XYZxyz(44.6330, 37.9003, 74.7619)
Luminance0.3790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97DF #BCDF97
analogous
#9798DF #BA97DF #DE97DF
triadic
#BA97DF #DFBA97 #97DFBA
tetradic
#BA97DF #DF9798 #BCDF97 #97DFDE
square
#BA97DF #DF9798 #BCDF97 #97DFDE
split-complementary
#BA97DF #DFDE97 #98DF97
monochromatic
#7C3BC0 #9B68D1 #BA97DF #D9C6ED #EFE8F8

Accessibility & contrast

On white

2.45
#BA97DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#BA97DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97DF
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97DF#FFFFFF#000000##000000
##BA97DF1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A4E2
Deuteranopia (green-blind)
#90A6DD
Tritanopia (blue-blind)
#B5A1B1
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba97df;
/* rgb */ color: rgb(186, 151, 223);
/* oklch */ color: oklch(73.4% 0.108 306.2);
Tailwind
colors: {
  custom: {
    50: '#cfb6e9',
    500: '#ba97df',
    950: '#000000',
  },
}
SCSS
$custom: #ba97df;
$custom-light: #cfb6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97df",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 269.167,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73424,
    "c": 0.10813,
    "h": 306.2
  },
  "luminance": 0.379
}

Semantic roles & 50–950 ramp

primary
#BA97DF
secondary
#E6EFDC
accent
#C02575
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA97DF

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

Preview Lab → · Contrast checker → · Palette generator →

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