#B98DEC#B98DEC

#B98DEC is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.2% C 0.141 H 304.4°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B98DEC
RGBrgb(185, 141, 236)
HSLhsl(268, 71%, 74%)
HSVhsv(268, 40%, 93%)
CMYKcmyk(21.6%, 40.3%, 0%, 7.5%)
CIE-LABlab(66.07, 34.97, -41.79)
CIE-LCHlch(66.07, 54.50, 309.92°)
OKLaboklab(72.16% 0.0797 -0.1162)
OKLCHoklch(72.16% 0.141 304.4)
XYZxyz(44.6696, 35.4203, 83.8241)
Luminance0.3542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98DEC #C0EC8D
analogous
#8D91EC #B98DEC #E88DEC
triadic
#B98DEC #ECB98D #8DECB9
tetradic
#B98DEC #EC8D91 #C0EC8D #8DECE8
square
#B98DEC #EC8D91 #C0EC8D #8DECE8
split-complementary
#B98DEC #ECE88D #91EC8D
monochromatic
#7924DA #9959E3 #B98DEC #D9C1F5 #EFE5FB

Accessibility & contrast

On white

2.60
#B98DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#B98DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98DEC
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98DEC#FFFFFF#000000##000000
##B98DEC1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#769FF0
Deuteranopia (green-blind)
#80A1E9
Tritanopia (blue-blind)
#B19CB1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b98dec;
/* rgb */ color: rgb(185, 141, 236);
/* oklch */ color: oklch(72.2% 0.141 304.4);
Tailwind
colors: {
  custom: {
    50: '#cfaff2',
    500: '#b98dec',
    950: '#000000',
  },
}
SCSS
$custom: #b98dec;
$custom-light: #cfaff2;
$custom-dark: #000000;
JSON
{
  "hex": "#b98dec",
  "rgb": {
    "r": 185,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 267.789,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7216,
    "c": 0.14094,
    "h": 304.4
  },
  "luminance": 0.3542
}

Semantic roles & 50–950 ramp

primary
#B98DEC
secondary
#E6F2D9
accent
#D3127A
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B98DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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