#BA97CD#BA97CD

#BA97CD is a light, moderate violet. Relative luminance 0.370; OKLCH L 72.7% C 0.086 H 313.5°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#BA97CD
RGBrgb(186, 151, 205)
HSLhsl(279, 35%, 70%)
HSVhsv(279, 26%, 80%)
CMYKcmyk(9.3%, 26.3%, 0%, 19.6%)
CIE-LABlab(67.26, 22.95, -22.79)
CIE-LCHlch(67.26, 32.35, 315.20°)
OKLaboklab(72.67% 0.0589 -0.0621)
OKLCHoklch(72.67% 0.086 313.5)
XYZxyz(42.3340, 36.9807, 62.6536)
Luminance0.3698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97CD #AACD97
analogous
#9F97CD #BA97CD #CD97C5
triadic
#BA97CD #CDBA97 #97CDBA
tetradic
#BA97CD #CD9F97 #AACD97 #97C5CD
square
#BA97CD #CD9F97 #AACD97 #97C5CD
split-complementary
#BA97CD #C5CD97 #97CD9F
monochromatic
#814C9E #9F6EB9 #BA97CD #D5C0E1 #F1EAF5

Accessibility & contrast

On white

2.50
#BA97CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#BA97CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97CD
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97CD#FFFFFF#000000##000000
##BA97CD1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA2CF
Deuteranopia (green-blind)
#97A5CB
Tritanopia (blue-blind)
#B99EAA
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba97cd;
/* rgb */ color: rgb(186, 151, 205);
/* oklch */ color: oklch(72.7% 0.086 313.5);
Tailwind
colors: {
  custom: {
    50: '#cfb5dc',
    500: '#ba97cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba97cd;
$custom-light: #cfb5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97cd",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 205
  },
  "hsl": {
    "h": 278.889,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.72674,
    "c": 0.08555,
    "h": 313.5
  },
  "luminance": 0.3698
}

Semantic roles & 50–950 ramp

primary
#BA97CD
secondary
#DEE8D8
accent
#AE3861
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#141115
muted
#828083

Preview Lab

Preview with #BA97CD

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

Preview Lab → · Contrast checker → · Palette generator →

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