#B97EF6#B97EF6

#B97EF6 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.2% C 0.177 H 305.0°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#B97EF6
RGBrgb(185, 126, 246)
HSLhsl(270, 87%, 73%)
HSVhsv(270, 49%, 96%)
CMYKcmyk(24.8%, 48.8%, 0%, 3.5%)
CIE-LABlab(63.25, 45.48, -51.75)
CIE-LCHlch(63.25, 68.89, 311.31°)
OKLaboklab(70.2% 0.1015 -0.1451)
OKLCHoklch(70.2% 0.177 305)
XYZxyz(44.0995, 31.8901, 91.0031)
Luminance0.3189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EF6 #BBF67E
analogous
#7E7FF6 #B97EF6 #F57EF6
triadic
#B97EF6 #F6B97E #7EF6B9
tetradic
#B97EF6 #F67E7F #BBF67E #7EF6F5
square
#B97EF6 #F67E7F #BBF67E #7EF6F5
split-complementary
#B97EF6 #F6F57E #7FF67E
monochromatic
#7B10E9 #9A45F2 #B97EF6 #D8B7FA #EFE2FD

Accessibility & contrast

On white

2.85
#B97EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#B97EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EF6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EF6#FFFFFF#000000##000000
##B97EF61.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B97FA
Deuteranopia (green-blind)
#6B99F3
Tritanopia (blue-blind)
#AF93AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b97ef6;
/* rgb */ color: rgb(185, 126, 246);
/* oklch */ color: oklch(70.2% 0.177 305.0);
Tailwind
colors: {
  custom: {
    50: '#d0a5fa',
    500: '#b97ef6',
    950: '#000000',
  },
}
SCSS
$custom: #b97ef6;
$custom-light: #d0a5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b97ef6",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 269.5,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70199,
    "c": 0.17709,
    "h": 305
  },
  "luminance": 0.3189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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