#B97EF7#B97EF7

#B97EF7 is a light, vivid violet. Relative luminance 0.320; OKLCH L 70.3% C 0.178 H 304.8°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#B97EF7
RGBrgb(185, 126, 247)
HSLhsl(269, 88%, 73%)
HSVhsv(269, 49%, 97%)
CMYKcmyk(25.1%, 49%, 0%, 3.1%)
CIE-LABlab(63.30, 45.71, -52.22)
CIE-LCHlch(63.30, 69.40, 311.20°)
OKLaboklab(70.25% 0.1016 -0.1465)
OKLCHoklch(70.25% 0.178 304.8)
XYZxyz(44.2534, 31.9516, 91.8136)
Luminance0.3195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EF7 #BCF77E
analogous
#7E7FF7 #B97EF7 #F57EF7
triadic
#B97EF7 #F7B97E #7EF7B9
tetradic
#B97EF7 #F77E7F #BCF77E #7EF7F5
square
#B97EF7 #F77E7F #BCF77E #7EF7F5
split-complementary
#B97EF7 #F7F57E #7FF77E
monochromatic
#7B0FEC #9A44F3 #B97EF7 #D8B8FB #EFE2FD

Accessibility & contrast

On white

2.84
#B97EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#B97EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EF7
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EF7#FFFFFF#000000##000000
##B97EF71.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b97ef7;
/* rgb */ color: rgb(185, 126, 247);
/* oklch */ color: oklch(70.3% 0.178 304.8);
Tailwind
colors: {
  custom: {
    50: '#d1a5fa',
    500: '#b97ef7',
    950: '#000000',
  },
}
SCSS
$custom: #b97ef7;
$custom-light: #d1a5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b97ef7",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 269.256,
    "s": 88.321,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70254,
    "c": 0.17827,
    "h": 304.8
  },
  "luminance": 0.31951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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