#B97FEB#B97FEB

#B97FEB is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.8% C 0.162 H 307.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#B97FEB
RGBrgb(185, 127, 235)
HSLhsl(272, 73%, 71%)
HSVhsv(272, 46%, 92%)
CMYKcmyk(21.3%, 46%, 0%, 7.8%)
CIE-LABlab(62.92, 42.44, -46.20)
CIE-LCHlch(62.92, 62.73, 312.57°)
OKLaboklab(69.77% 0.0989 -0.1289)
OKLCHoklch(69.77% 0.162 307.5)
XYZxyz(42.5894, 31.4916, 82.4160)
Luminance0.3149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97FEB #B1EB7F
analogous
#837FEB #B97FEB #EB7FE7
triadic
#B97FEB #EBB97F #7FEBB9
tetradic
#B97FEB #EB837F #B1EB7F #7FE7EB
square
#B97FEB #EB837F #B1EB7F #7FE7EB
split-complementary
#B97FEB #E7EB7F #7FEB83
monochromatic
#7E20CF #9C4AE3 #B97FEB #D6B4F3 #F1E5FB

Accessibility & contrast

On white

2.88
#B97FEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#B97FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97FEB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97FEB#FFFFFF#000000##000000
##B97FEB1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#7399E8
Tritanopia (blue-blind)
#B291AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b97feb;
/* rgb */ color: rgb(185, 127, 235);
/* oklch */ color: oklch(69.8% 0.162 307.5);
Tailwind
colors: {
  custom: {
    50: '#d0a5f2',
    500: '#b97feb',
    950: '#000000',
  },
}
SCSS
$custom: #b97feb;
$custom-light: #d0a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b97feb",
  "rgb": {
    "r": 185,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 272.222,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69775,
    "c": 0.16249,
    "h": 307.5
  },
  "luminance": 0.31491
}

Semantic roles & 50–950 ramp

primary
#B97FEB
secondary
#E2F1D5
accent
#D5106B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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