#B97EFC#B97EFC

#B97EFC is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.5% C 0.184 H 303.7°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#B97EFC
RGBrgb(185, 126, 252)
HSLhsl(268, 95%, 74%)
HSVhsv(268, 50%, 99%)
CMYKcmyk(26.6%, 50%, 0%, 1.2%)
CIE-LABlab(63.56, 46.87, -54.56)
CIE-LCHlch(63.56, 71.92, 310.66°)
OKLaboklab(70.53% 0.1021 -0.1533)
OKLCHoklch(70.53% 0.184 303.7)
XYZxyz(45.0353, 32.2644, 95.9317)
Luminance0.3226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EFC #C1FC7E
analogous
#7E82FC #B97EFC #F87EFC
triadic
#B97EFC #FCB97E #7EFCB9
tetradic
#B97EFC #FC7E82 #C1FC7E #7EFCF8
square
#B97EFC #FC7E82 #C1FC7E #7EFCF8
split-complementary
#B97EFC #FCF87E #82FC7E
monochromatic
#7806F9 #9942FB #B97EFC #D9BAFD #EFE1FE

Accessibility & contrast

On white

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

On black

7.45
#B97EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EFC
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EFC#FFFFFF#000000##000000
##B97EFC1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5698FF
Deuteranopia (green-blind)
#679AF9
Tritanopia (blue-blind)
#AD95B1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b97efc;
/* rgb */ color: rgb(185, 126, 252);
/* oklch */ color: oklch(70.5% 0.184 303.7);
Tailwind
colors: {
  custom: {
    50: '#d1a5fe',
    500: '#b97efc',
    950: '#000000',
  },
}
SCSS
$custom: #b97efc;
$custom-light: #d1a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b97efc",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 268.095,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70529,
    "c": 0.18418,
    "h": 303.7
  },
  "luminance": 0.32264
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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