#B98ECA#B98ECA

#B98ECA is a light, moderate purple. Relative luminance 0.339; OKLCH L 70.8% C 0.098 H 316.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#B98ECA
RGBrgb(185, 142, 202)
HSLhsl(283, 36%, 67%)
HSVhsv(283, 30%, 79%)
CMYKcmyk(8.4%, 29.7%, 0%, 20.8%)
CIE-LABlab(64.90, 27.03, -24.74)
CIE-LCHlch(64.90, 36.65, 317.53°)
OKLaboklab(70.81% 0.0704 -0.0675)
OKLCHoklch(70.81% 0.098 316.2)
XYZxyz(40.3397, 33.9253, 60.2889)
Luminance0.3392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98ECA #9FCA8E
analogous
#9B8ECA #B98ECA #CA8EBD
triadic
#B98ECA #CAB98E #8ECAB9
tetradic
#B98ECA #CA9B8E #9FCA8E #8EBDCA
square
#B98ECA #CA9B8E #9FCA8E #8EBDCA
split-complementary
#B98ECA #BDCA8E #8ECA9B
monochromatic
#804797 #9F64B6 #B98ECA #D3B8DE #EDE1F1

Accessibility & contrast

On white

2.70
#B98ECA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#B98ECA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98ECA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98ECA#FFFFFF#000000##000000
##B98ECA1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#869BCC
Deuteranopia (green-blind)
#8F9FC8
Tritanopia (blue-blind)
#B995A4
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b98eca;
/* rgb */ color: rgb(185, 142, 202);
/* oklch */ color: oklch(70.8% 0.098 316.2);
Tailwind
colors: {
  custom: {
    50: '#ceafda',
    500: '#b98eca',
    950: '#000000',
  },
}
SCSS
$custom: #b98eca;
$custom-light: #ceafda;
$custom-dark: #000000;
JSON
{
  "hex": "#b98eca",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 202
  },
  "hsl": {
    "h": 283,
    "s": 36.145,
    "l": 67.451
  },
  "oklch": {
    "l": 0.70809,
    "c": 0.09751,
    "h": 316.2
  },
  "luminance": 0.33925
}

Semantic roles & 50–950 ramp

primary
#B98ECA
secondary
#D6E3D1
accent
#AF3659
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#141014
muted
#827F83

Preview Lab

Preview with #B98ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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