#B98CD5#B98CD5

#B98CD5 is a light, moderate violet. Relative luminance 0.339; OKLCH L 70.9% C 0.114 H 311.8°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#B98CD5
RGBrgb(185, 140, 213)
HSLhsl(277, 46%, 69%)
HSVhsv(277, 34%, 84%)
CMYKcmyk(13.1%, 34.3%, 0%, 16.5%)
CIE-LABlab(64.86, 30.45, -30.94)
CIE-LCHlch(64.86, 43.41, 314.54°)
OKLaboklab(70.92% 0.0762 -0.0851)
OKLCHoklch(70.92% 0.114 311.8)
XYZxyz(41.3939, 33.8752, 67.2958)
Luminance0.3387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98CD5 #A8D58C
analogous
#958CD5 #B98CD5 #D58CCD
triadic
#B98CD5 #D5B98C #8CD5B9
tetradic
#B98CD5 #D5958C #A8D58C #8CCDD5
square
#B98CD5 #D5958C #A8D58C #8CCDD5
split-complementary
#B98CD5 #CDD58C #8CD595
monochromatic
#803EA9 #9E5FC5 #B98CD5 #D4B9E5 #F0E6F6

Accessibility & contrast

On white

2.70
#B98CD5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#B98CD5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98CD5
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98CD5#FFFFFF#000000##000000
##B98CD51.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F9BD8
Deuteranopia (green-blind)
#8A9ED3
Tritanopia (blue-blind)
#B696A7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b98cd5;
/* rgb */ color: rgb(185, 140, 213);
/* oklch */ color: oklch(70.9% 0.114 311.8);
Tailwind
colors: {
  custom: {
    50: '#cfaee2',
    500: '#b98cd5',
    950: '#000000',
  },
}
SCSS
$custom: #b98cd5;
$custom-light: #cfaee2;
$custom-dark: #000000;
JSON
{
  "hex": "#b98cd5",
  "rgb": {
    "r": 185,
    "g": 140,
    "b": 213
  },
  "hsl": {
    "h": 276.986,
    "s": 46.497,
    "l": 69.216
  },
  "oklch": {
    "l": 0.7092,
    "c": 0.11421,
    "h": 311.8
  },
  "luminance": 0.33875
}

Semantic roles & 50–950 ramp

primary
#B98CD5
secondary
#DCE9D4
accent
#BA2C62
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #B98CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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