#B97EFB#B97EFB

#B97EFB is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.5% C 0.183 H 303.9°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#B97EFB
RGBrgb(185, 126, 251)
HSLhsl(268, 94%, 74%)
HSVhsv(268, 50%, 98%)
CMYKcmyk(26.3%, 49.8%, 0%, 1.6%)
CIE-LABlab(63.51, 46.63, -54.09)
CIE-LCHlch(63.51, 71.42, 310.76°)
OKLaboklab(70.47% 0.102 -0.1519)
OKLCHoklch(70.47% 0.183 303.9)
XYZxyz(44.8772, 32.2012, 95.0993)
Luminance0.3220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EFB #C0FB7E
analogous
#7E82FB #B97EFB #F87EFB
triadic
#B97EFB #FBB97E #7EFBB9
tetradic
#B97EFB #FB7E82 #C0FB7E #7EFBF8
square
#B97EFB #FB7E82 #C0FB7E #7EFBF8
split-complementary
#B97EFB #FBF87E #82FB7E
monochromatic
#7908F7 #9943F9 #B97EFB #D9B9FD #EFE1FE

Accessibility & contrast

On white

2.82
#B97EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#B97EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EFB
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EFB#FFFFFF#000000##000000
##B97EFB1.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5798FF
Deuteranopia (green-blind)
#689AF8
Tritanopia (blue-blind)
#AE95B1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b97efb;
/* rgb */ color: rgb(185, 126, 251);
/* oklch */ color: oklch(70.5% 0.183 303.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5fd',
    500: '#b97efb',
    950: '#000000',
  },
}
SCSS
$custom: #b97efb;
$custom-light: #d1a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b97efb",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 268.32,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70474,
    "c": 0.183,
    "h": 303.9
  },
  "luminance": 0.32201
}

Semantic roles & 50–950 ramp

primary
#B97EFB
secondary
#E6F6D5
accent
#E60079
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B97EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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