#B97DF7#B97DF7

#B97DF7 is a light, vivid violet. Relative luminance 0.317; OKLCH L 70.1% C 0.180 H 304.9°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#B97DF7
RGBrgb(185, 125, 247)
HSLhsl(270, 88%, 73%)
HSVhsv(270, 49%, 97%)
CMYKcmyk(25.1%, 49.4%, 0%, 3.1%)
CIE-LABlab(63.09, 46.25, -52.56)
CIE-LCHlch(63.09, 70.00, 311.35°)
OKLaboklab(70.1% 0.1029 -0.1474)
OKLCHoklch(70.1% 0.18 304.9)
XYZxyz(44.1261, 31.6972, 91.7712)
Luminance0.3170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97DF7 #BBF77D
analogous
#7D7EF7 #B97DF7 #F67DF7
triadic
#B97DF7 #F7B97D #7DF7B9
tetradic
#B97DF7 #F77D7E #BBF77D #7DF7F6
square
#B97DF7 #F77D7E #BBF77D #7DF7F6
split-complementary
#B97DF7 #F7F67D #7EF77D
monochromatic
#7B0EEB #9A43F3 #B97DF7 #D8B7FB #EFE2FD

Accessibility & contrast

On white

2.86
#B97DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#B97DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97DF7
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97DF7#FFFFFF#000000##000000
##B97DF71.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5997FB
Deuteranopia (green-blind)
#6999F4
Tritanopia (blue-blind)
#AF93AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b97df7;
/* rgb */ color: rgb(185, 125, 247);
/* oklch */ color: oklch(70.1% 0.180 304.9);
Tailwind
colors: {
  custom: {
    50: '#d1a4fa',
    500: '#b97df7',
    950: '#000000',
  },
}
SCSS
$custom: #b97df7;
$custom-light: #d1a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b97df7",
  "rgb": {
    "r": 185,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 269.508,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70097,
    "c": 0.17983,
    "h": 304.9
  },
  "luminance": 0.31697
}

Semantic roles & 50–950 ramp

primary
#B97DF7
secondary
#E6F5D6
accent
#E50075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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