#B98ECD#B98ECD

#B98ECD is a light, moderate purple. Relative luminance 0.341; OKLCH L 70.9% C 0.101 H 314.8°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#B98ECD
RGBrgb(185, 142, 205)
HSLhsl(281, 39%, 68%)
HSVhsv(281, 31%, 80%)
CMYKcmyk(9.8%, 30.7%, 0%, 19.6%)
CIE-LABlab(65.02, 27.65, -26.24)
CIE-LCHlch(65.02, 38.12, 316.49°)
OKLaboklab(70.93% 0.0712 -0.0717)
OKLCHoklch(70.93% 0.101 314.8)
XYZxyz(40.6983, 34.0688, 62.1777)
Luminance0.3407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98ECD #A2CD8E
analogous
#998ECD #B98ECD #CD8EC1
triadic
#B98ECD #CDB98E #8ECDB9
tetradic
#B98ECD #CD998E #A2CD8E #8EC1CD
square
#B98ECD #CD998E #A2CD8E #8EC1CD
split-complementary
#B98ECD #C1CD8E #8ECD99
monochromatic
#80459C #9F64BA #B98ECD #D3B8E0 #EEE3F3

Accessibility & contrast

On white

2.69
#B98ECD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#B98ECD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98ECD
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98ECD#FFFFFF#000000##000000
##B98ECD1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#859BCF
Deuteranopia (green-blind)
#8E9FCB
Tritanopia (blue-blind)
#B896A5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b98ecd;
/* rgb */ color: rgb(185, 142, 205);
/* oklch */ color: oklch(70.9% 0.101 314.8);
Tailwind
colors: {
  custom: {
    50: '#ceafdc',
    500: '#b98ecd',
    950: '#000000',
  },
}
SCSS
$custom: #b98ecd;
$custom-light: #ceafdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b98ecd",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 205
  },
  "hsl": {
    "h": 280.952,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.70934,
    "c": 0.10107,
    "h": 314.8
  },
  "luminance": 0.34068
}

Semantic roles & 50–950 ramp

primary
#B98ECD
secondary
#D8E5D2
accent
#B2345C
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #B98ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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