#B97ECA#B97ECA

#B97ECA is a light, vivid purple. Relative luminance 0.295; OKLCH L 68.0% C 0.126 H 318.5°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#B97ECA
RGBrgb(185, 126, 202)
HSLhsl(287, 42%, 64%)
HSVhsv(287, 38%, 79%)
CMYKcmyk(8.4%, 37.6%, 0%, 20.8%)
CIE-LABlab(61.22, 35.90, -30.42)
CIE-LCHlch(61.22, 47.06, 319.73°)
OKLaboklab(68.01% 0.0943 -0.0835)
OKLCHoklch(68.01% 0.126 318.5)
XYZxyz(38.1277, 29.5013, 59.5515)
Luminance0.2950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97ECA #8FCA7E
analogous
#937ECA #B97ECA #CA7EB5
triadic
#B97ECA #CAB97E #7ECAB9
tetradic
#B97ECA #CA937E #8FCA7E #7EB5CA
square
#B97ECA #CA937E #8FCA7E #7EB5CA
split-complementary
#B97ECA #B5CA7E #7ECA93
monochromatic
#7F3C92 #A153B8 #B97ECA #D1A9DC #E8D5EE

Accessibility & contrast

On white

3.04
#B97ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#B97ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B97ECA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97ECA#FFFFFF#000000##000000
##B97ECA1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7390CD
Deuteranopia (green-blind)
#8296C8
Tritanopia (blue-blind)
#B9879B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b97eca;
/* rgb */ color: rgb(185, 126, 202);
/* oklch */ color: oklch(68.0% 0.126 318.5);
Tailwind
colors: {
  custom: {
    50: '#cfa4da',
    500: '#b97eca',
    950: '#000000',
  },
}
SCSS
$custom: #b97eca;
$custom-light: #cfa4da;
$custom-dark: #000000;
JSON
{
  "hex": "#b97eca",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 286.579,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.68014,
    "c": 0.12596,
    "h": 318.5
  },
  "luminance": 0.295
}

Semantic roles & 50–950 ramp

primary
#B97ECA
secondary
#CBDFC5
accent
#B5314E
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F15
muted
#827F83

Preview Lab

Preview with #B97ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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