#B98CD2#B98CD2

#B98CD2 is a light, moderate violet. Relative luminance 0.337; OKLCH L 70.8% C 0.111 H 313.0°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#B98CD2
RGBrgb(185, 140, 210)
HSLhsl(279, 44%, 69%)
HSVhsv(279, 33%, 82%)
CMYKcmyk(11.9%, 33.3%, 0%, 17.6%)
CIE-LABlab(64.74, 29.81, -29.46)
CIE-LCHlch(64.74, 41.91, 315.34°)
OKLaboklab(70.79% 0.0755 -0.0808)
OKLCHoklch(70.79% 0.111 313)
XYZxyz(41.0166, 33.7243, 65.3090)
Luminance0.3372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98CD2 #A5D28C
analogous
#968CD2 #B98CD2 #D28CC8
triadic
#B98CD2 #D2B98C #8CD2B9
tetradic
#B98CD2 #D2968C #A5D28C #8CC8D2
square
#B98CD2 #D2968C #A5D28C #8CC8D2
split-complementary
#B98CD2 #C8D28C #8CD296
monochromatic
#8040A4 #9E60C1 #B98CD2 #D4B8E3 #EFE4F4

Accessibility & contrast

On white

2.71
#B98CD2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#B98CD2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98CD2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98CD2#FFFFFF#000000##000000
##B98CD21.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#819BD5
Deuteranopia (green-blind)
#8B9ED0
Tritanopia (blue-blind)
#B795A6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b98cd2;
/* rgb */ color: rgb(185, 140, 210);
/* oklch */ color: oklch(70.8% 0.111 313.0);
Tailwind
colors: {
  custom: {
    50: '#cfaee0',
    500: '#b98cd2',
    950: '#000000',
  },
}
SCSS
$custom: #b98cd2;
$custom-light: #cfaee0;
$custom-dark: #000000;
JSON
{
  "hex": "#b98cd2",
  "rgb": {
    "r": 185,
    "g": 140,
    "b": 210
  },
  "hsl": {
    "h": 278.571,
    "s": 43.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70789,
    "c": 0.11059,
    "h": 313
  },
  "luminance": 0.33724
}

Semantic roles & 50–950 ramp

primary
#B98CD2
secondary
#DAE7D2
accent
#B72F5F
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #B98CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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