#B98CEE#B98CEE

#B98CEE is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.1% C 0.145 H 304.2°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#B98CEE
RGBrgb(185, 140, 238)
HSLhsl(268, 74%, 74%)
HSVhsv(268, 41%, 93%)
CMYKcmyk(22.3%, 41.2%, 0%, 6.7%)
CIE-LABlab(65.94, 35.98, -43.11)
CIE-LCHlch(65.94, 56.15, 309.85°)
OKLaboklab(72.09% 0.0815 -0.12)
OKLCHoklch(72.09% 0.145 304.2)
XYZxyz(44.8150, 35.2436, 85.3141)
Luminance0.3524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98CEE #C1EE8C
analogous
#8C90EE #B98CEE #EA8CEE
triadic
#B98CEE #EEB98C #8CEEB9
tetradic
#B98CEE #EE8C90 #C1EE8C #8CEEEA
square
#B98CEE #EE8C90 #C1EE8C #8CEEEA
split-complementary
#B98CEE #EEEA8C #90EE8C
monochromatic
#7821DE #9957E6 #B98CEE #D9C1F6 #EFE4FB

Accessibility & contrast

On white

2.61
#B98CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#B98CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98CEE
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98CEE#FFFFFF#000000##000000
##B98CEE1.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#749FF2
Deuteranopia (green-blind)
#7EA0EB
Tritanopia (blue-blind)
#B09CB2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b98cee;
/* rgb */ color: rgb(185, 140, 238);
/* oklch */ color: oklch(72.1% 0.145 304.2);
Tailwind
colors: {
  custom: {
    50: '#d0aef4',
    500: '#b98cee',
    950: '#000000',
  },
}
SCSS
$custom: #b98cee;
$custom-light: #d0aef4;
$custom-dark: #000000;
JSON
{
  "hex": "#b98cee",
  "rgb": {
    "r": 185,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 267.551,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72087,
    "c": 0.14507,
    "h": 304.2
  },
  "luminance": 0.35244
}

Semantic roles & 50–950 ramp

primary
#B98CEE
secondary
#E7F3D8
accent
#D60F7B
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B98CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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