#B97EFE#B97EFE

#B97EFE is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.6% C 0.187 H 303.2°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#B97EFE
RGBrgb(185, 126, 254)
HSLhsl(268, 98%, 75%)
HSVhsv(268, 50%, 100%)
CMYKcmyk(27.2%, 50.4%, 0%, 0.4%)
CIE-LABlab(63.67, 47.33, -55.49)
CIE-LCHlch(63.67, 72.93, 310.46°)
OKLaboklab(70.64% 0.1023 -0.156)
OKLCHoklch(70.64% 0.187 303.2)
XYZxyz(45.3539, 32.3918, 97.6096)
Luminance0.3239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EFE #C3FE7E
analogous
#7E83FE #B97EFE #F97EFE
triadic
#B97EFE #FEB97E #7EFEB9
tetradic
#B97EFE #FE7E83 #C3FE7E #7EFEF9
square
#B97EFE #FE7E83 #C3FE7E #7EFEF9
split-complementary
#B97EFE #FEF97E #83FE7E
monochromatic
#7705FD #9841FE #B97EFE #DABBFE #EFE1FF

Accessibility & contrast

On white

2.81
#B97EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#B97EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EFE
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EFE#FFFFFF#000000##000000
##B97EFE1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5599FF
Deuteranopia (green-blind)
#669AFB
Tritanopia (blue-blind)
#AD95B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b97efe;
/* rgb */ color: rgb(185, 126, 254);
/* oklch */ color: oklch(70.6% 0.187 303.2);
Tailwind
colors: {
  custom: {
    50: '#d1a5ff',
    500: '#b97efe',
    950: '#000000',
  },
}
SCSS
$custom: #b97efe;
$custom-light: #d1a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b97efe",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 267.656,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70641,
    "c": 0.18655,
    "h": 303.2
  },
  "luminance": 0.32392
}

Semantic roles & 50–950 ramp

primary
#B97EFE
secondary
#E7F7D4
accent
#E6007C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B97EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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