#BA98CD#BA98CD

#BA98CD is a light, moderate violet. Relative luminance 0.373; OKLCH L 72.9% C 0.084 H 313.2°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#BA98CD
RGBrgb(186, 152, 205)
HSLhsl(278, 35%, 70%)
HSVhsv(278, 26%, 80%)
CMYKcmyk(9.3%, 25.9%, 0%, 19.6%)
CIE-LABlab(67.50, 22.40, -22.43)
CIE-LCHlch(67.50, 31.69, 314.96°)
OKLaboklab(72.86% 0.0574 -0.061)
OKLCHoklch(72.86% 0.084 313.2)
XYZxyz(42.4956, 37.3039, 62.7075)
Luminance0.3730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98CD #ABCD98
analogous
#A098CD #BA98CD #CD98C5
triadic
#BA98CD #CDBA98 #98CDBA
tetradic
#BA98CD #CDA098 #ABCD98 #98C5CD
square
#BA98CD #CDA098 #ABCD98 #98C5CD
split-complementary
#BA98CD #C5CD98 #98CDA0
monochromatic
#814D9E #9E6FB9 #BA98CD #D6C1E1 #F1EAF5

Accessibility & contrast

On white

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

On black

8.46
#BA98CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98CD
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98CD#FFFFFF#000000##000000
##BA98CD1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A2CF
Deuteranopia (green-blind)
#97A5CB
Tritanopia (blue-blind)
#B99EAB
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba98cd;
/* rgb */ color: rgb(186, 152, 205);
/* oklch */ color: oklch(72.9% 0.084 313.2);
Tailwind
colors: {
  custom: {
    50: '#cfb6dc',
    500: '#ba98cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba98cd;
$custom-light: #cfb6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98cd",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 278.491,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.7286,
    "c": 0.08378,
    "h": 313.2
  },
  "luminance": 0.37303
}

Semantic roles & 50–950 ramp

primary
#BA98CD
secondary
#DEE8D9
accent
#AD3862
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#141115
muted
#828083

Preview Lab

Preview with #BA98CD

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

Preview Lab → · Contrast checker → · Palette generator →

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