#B98EDA#B98EDA

#B98EDA is a light, moderate violet. Relative luminance 0.347; OKLCH L 71.5% C 0.117 H 309.6°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#B98EDA
RGBrgb(185, 142, 218)
HSLhsl(274, 51%, 71%)
HSVhsv(274, 35%, 85%)
CMYKcmyk(15.1%, 34.9%, 0%, 14.5%)
CIE-LABlab(65.53, 30.41, -32.69)
CIE-LCHlch(65.53, 44.65, 312.93°)
OKLaboklab(71.5% 0.0745 -0.0901)
OKLCHoklch(71.5% 0.117 309.6)
XYZxyz(42.3332, 34.7227, 70.7881)
Luminance0.3472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EDA #AFDA8E
analogous
#938EDA #B98EDA #DA8ED5
triadic
#B98EDA #DAB98E #8EDAB9
tetradic
#B98EDA #DA938E #AFDA8E #8ED5DA
square
#B98EDA #DA938E #AFDA8E #8ED5DA
split-complementary
#B98EDA #D5DA8E #8EDA93
monochromatic
#7F3BB3 #9C60CB #B98EDA #D6BCE9 #F1E8F7

Accessibility & contrast

On white

2.64
#B98EDA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#B98EDA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EDA
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EDA#FFFFFF#000000##000000
##B98EDA1.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#809DDD
Deuteranopia (green-blind)
#89A0D8
Tritanopia (blue-blind)
#B599AA
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b98eda;
/* rgb */ color: rgb(185, 142, 218);
/* oklch */ color: oklch(71.5% 0.117 309.6);
Tailwind
colors: {
  custom: {
    50: '#cfafe5',
    500: '#b98eda',
    950: '#000000',
  },
}
SCSS
$custom: #b98eda;
$custom-light: #cfafe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b98eda",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 218
  },
  "hsl": {
    "h": 273.947,
    "s": 50.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71495,
    "c": 0.11688,
    "h": 309.6
  },
  "luminance": 0.34722
}

Semantic roles & 50–950 ramp

primary
#B98EDA
secondary
#E1ECD8
accent
#BE2769
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #B98EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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