#B97DF8#B97DF8

#B97DF8 is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.2% C 0.181 H 304.7°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#B97DF8
RGBrgb(185, 125, 248)
HSLhsl(269, 90%, 73%)
HSVhsv(269, 50%, 97%)
CMYKcmyk(25.4%, 49.6%, 0%, 2.7%)
CIE-LABlab(63.14, 46.48, -53.02)
CIE-LCHlch(63.14, 70.51, 311.24°)
OKLaboklab(70.15% 0.103 -0.1488)
OKLCHoklch(70.15% 0.181 304.7)
XYZxyz(44.2809, 31.7590, 92.5860)
Luminance0.3176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97DF8 #BCF87D
analogous
#7D7EF8 #B97DF8 #F67DF8
triadic
#B97DF8 #F8B97D #7DF8B9
tetradic
#B97DF8 #F87D7E #BCF87D #7DF8F6
square
#B97DF8 #F87D7E #BCF87D #7DF8F6
split-complementary
#B97DF8 #F8F67D #7EF87D
monochromatic
#7B0DEE #9A43F5 #B97DF8 #D8B7FB #EFE2FD

Accessibility & contrast

On white

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

On black

7.35
#B97DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97DF8
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97DF8#FFFFFF#000000##000000
##B97DF81.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FC
Deuteranopia (green-blind)
#6999F5
Tritanopia (blue-blind)
#AE93AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b97df8;
/* rgb */ color: rgb(185, 125, 248);
/* oklch */ color: oklch(70.2% 0.181 304.7);
Tailwind
colors: {
  custom: {
    50: '#d1a4fb',
    500: '#b97df8',
    950: '#000000',
  },
}
SCSS
$custom: #b97df8;
$custom-light: #d1a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b97df8",
  "rgb": {
    "r": 185,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 269.268,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70152,
    "c": 0.181,
    "h": 304.7
  },
  "luminance": 0.31759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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