#B97DF2#B97DF2

#B97DF2 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.8% C 0.174 H 306.1°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#B97DF2
RGBrgb(185, 125, 242)
HSLhsl(271, 82%, 72%)
HSVhsv(271, 48%, 95%)
CMYKcmyk(23.6%, 48.3%, 0%, 5.1%)
CIE-LABlab(62.84, 45.10, -50.20)
CIE-LCHlch(62.84, 67.49, 311.94°)
OKLaboklab(69.83% 0.1024 -0.1406)
OKLCHoklch(69.83% 0.174 306.1)
XYZxyz(43.3649, 31.3927, 87.7621)
Luminance0.3139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97DF2 #B6F27D
analogous
#7F7DF2 #B97DF2 #F27DF1
triadic
#B97DF2 #F2B97D #7DF2B9
tetradic
#B97DF2 #F27F7D #B6F27D #7DF1F2
square
#B97DF2 #F27F7D #B6F27D #7DF1F2
split-complementary
#B97DF2 #F1F27D #7DF27F
monochromatic
#7D16DE #9B45EC #B97DF2 #D7B5F8 #F0E3FC

Accessibility & contrast

On white

2.89
#B97DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#B97DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97DF2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97DF2#FFFFFF#000000##000000
##B97DF21.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C96F6
Deuteranopia (green-blind)
#6D98EF
Tritanopia (blue-blind)
#B091AC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b97df2;
/* rgb */ color: rgb(185, 125, 242);
/* oklch */ color: oklch(69.8% 0.174 306.1);
Tailwind
colors: {
  custom: {
    50: '#d0a4f7',
    500: '#b97df2',
    950: '#000000',
  },
}
SCSS
$custom: #b97df2;
$custom-light: #d0a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b97df2",
  "rgb": {
    "r": 185,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 270.769,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69825,
    "c": 0.17394,
    "h": 306.1
  },
  "luminance": 0.31392
}

Semantic roles & 50–950 ramp

primary
#B97DF2
secondary
#E5F4D7
accent
#DE0770
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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