#B98CEF#B98CEF

#B98CEF is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.1% C 0.146 H 303.9°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#B98CEF
RGBrgb(185, 140, 239)
HSLhsl(267, 76%, 74%)
HSVhsv(267, 41%, 94%)
CMYKcmyk(22.6%, 41.4%, 0%, 6.3%)
CIE-LABlab(65.98, 36.21, -43.59)
CIE-LCHlch(65.98, 56.67, 309.72°)
OKLaboklab(72.14% 0.0816 -0.1214)
OKLCHoklch(72.14% 0.146 303.9)
XYZxyz(44.9624, 35.3026, 86.0900)
Luminance0.3530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98CEF #C2EF8C
analogous
#8C91EF #B98CEF #EB8CEF
triadic
#B98CEF #EFB98C #8CEFB9
tetradic
#B98CEF #EF8C91 #C2EF8C #8CEFEB
square
#B98CEF #EF8C91 #C2EF8C #8CEFEB
split-complementary
#B98CEF #EFEB8C #91EF8C
monochromatic
#7821E0 #9856E8 #B98CEF #DAC2F6 #EFE4FB

Accessibility & contrast

On white

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

On black

8.06
#B98CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98CEF
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98CEF#FFFFFF#000000##000000
##B98CEF1.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b98cef;
/* rgb */ color: rgb(185, 140, 239);
/* oklch */ color: oklch(72.1% 0.146 303.9);
Tailwind
colors: {
  custom: {
    50: '#d0aef4',
    500: '#b98cef',
    950: '#000000',
  },
}
SCSS
$custom: #b98cef;
$custom-light: #d0aef4;
$custom-dark: #000000;
JSON
{
  "hex": "#b98cef",
  "rgb": {
    "r": 185,
    "g": 140,
    "b": 239
  },
  "hsl": {
    "h": 267.273,
    "s": 75.573,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72136,
    "c": 0.14632,
    "h": 303.9
  },
  "luminance": 0.35302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B98CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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