#BA98CE#BA98CE

#BA98CE is a light, moderate violet. Relative luminance 0.374; OKLCH L 72.9% C 0.085 H 312.7°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#BA98CE
RGBrgb(186, 152, 206)
HSLhsl(278, 36%, 70%)
HSVhsv(278, 26%, 81%)
CMYKcmyk(9.7%, 26.2%, 0%, 19.2%)
CIE-LABlab(67.54, 22.60, -22.93)
CIE-LCHlch(67.54, 32.20, 314.60°)
OKLaboklab(72.9% 0.0577 -0.0624)
OKLCHoklch(72.9% 0.085 312.7)
XYZxyz(42.6167, 37.3523, 63.3452)
Luminance0.3735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98CE #ACCE98
analogous
#9F98CE #BA98CE #CE98C7
triadic
#BA98CE #CEBA98 #98CEBA
tetradic
#BA98CE #CE9F98 #ACCE98 #98C7CE
square
#BA98CE #CE9F98 #ACCE98 #98C7CE
split-complementary
#BA98CE #C7CE98 #98CE9F
monochromatic
#814CA0 #9E6FBA #BA98CE #D6C1E2 #F1EAF5

Accessibility & contrast

On white

2.48
#BA98CE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#BA98CE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98CE
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98CE#FFFFFF#000000##000000
##BA98CE1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A3D0
Deuteranopia (green-blind)
#97A5CC
Tritanopia (blue-blind)
#B89FAB
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba98ce;
/* rgb */ color: rgb(186, 152, 206);
/* oklch */ color: oklch(72.9% 0.085 312.7);
Tailwind
colors: {
  custom: {
    50: '#cfb6dd',
    500: '#ba98ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba98ce;
$custom-light: #cfb6dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98ce",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 206
  },
  "hsl": {
    "h": 277.778,
    "s": 35.526,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72899,
    "c": 0.085,
    "h": 312.7
  },
  "luminance": 0.37352
}

Semantic roles & 50–950 ramp

primary
#BA98CE
secondary
#DFE8D9
accent
#AE3763
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#141115
muted
#828083

Preview Lab

Preview with #BA98CE

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

Preview Lab → · Contrast checker → · Palette generator →

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