#B97EF8#B97EF8

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

Color values

HEX#B97EF8
RGBrgb(185, 126, 248)
HSLhsl(269, 90%, 73%)
HSVhsv(269, 49%, 97%)
CMYKcmyk(25.4%, 49.2%, 0%, 2.7%)
CIE-LABlab(63.35, 45.94, -52.69)
CIE-LCHlch(63.35, 69.90, 311.08°)
OKLaboklab(70.31% 0.1017 -0.1478)
OKLCHoklch(70.31% 0.179 304.5)
XYZxyz(44.4081, 32.0135, 92.6285)
Luminance0.3201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EF8 #BDF87E
analogous
#7E80F8 #B97EF8 #F67EF8
triadic
#B97EF8 #F8B97E #7EF8B9
tetradic
#B97EF8 #F87E80 #BDF87E #7EF8F6
square
#B97EF8 #F87E80 #BDF87E #7EF8F6
split-complementary
#B97EF8 #F8F67E #80F87E
monochromatic
#7A0DEF #9944F5 #B97EF8 #D8B8FB #EFE2FD

Accessibility & contrast

On white

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

On black

7.40
#B97EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EF8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EF8#FFFFFF#000000##000000
##B97EF81.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FC
Deuteranopia (green-blind)
#6A99F5
Tritanopia (blue-blind)
#AE94B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b97ef8;
/* rgb */ color: rgb(185, 126, 248);
/* oklch */ color: oklch(70.3% 0.179 304.5);
Tailwind
colors: {
  custom: {
    50: '#d1a5fb',
    500: '#b97ef8',
    950: '#000000',
  },
}
SCSS
$custom: #b97ef8;
$custom-light: #d1a5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b97ef8",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 269.016,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70309,
    "c": 0.17945,
    "h": 304.5
  },
  "luminance": 0.32013
}

Semantic roles & 50–950 ramp

primary
#B97EF8
secondary
#E6F6D5
accent
#E60077
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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