#B97BF2#B97BF2

#B97BF2 is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.5% C 0.177 H 306.4°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#B97BF2
RGBrgb(185, 123, 242)
HSLhsl(271, 82%, 72%)
HSVhsv(271, 49%, 95%)
CMYKcmyk(23.6%, 49.2%, 0%, 5.1%)
CIE-LABlab(62.42, 46.18, -50.87)
CIE-LCHlch(62.42, 68.70, 312.23°)
OKLaboklab(69.51% 0.1051 -0.1425)
OKLCHoklch(69.51% 0.177 306.4)
XYZxyz(43.1143, 30.8914, 87.6785)
Luminance0.3089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97BF2 #B4F27B
analogous
#7E7BF2 #B97BF2 #F27BEF
triadic
#B97BF2 #F2B97B #7BF2B9
tetradic
#B97BF2 #F27E7B #B4F27B #7BEFF2
square
#B97BF2 #F27E7B #B4F27B #7BEFF2
split-complementary
#B97BF2 #EFF27B #7BF27E
monochromatic
#7D16DD #9B43ED #B97BF2 #D7B3F7 #F0E3FC

Accessibility & contrast

On white

2.93
#B97BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#B97BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97BF2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97BF2#FFFFFF#000000##000000
##B97BF21.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#6B97EF
Tritanopia (blue-blind)
#B090AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b97bf2;
/* rgb */ color: rgb(185, 123, 242);
/* oklch */ color: oklch(69.5% 0.177 306.4);
Tailwind
colors: {
  custom: {
    50: '#d0a3f7',
    500: '#b97bf2',
    950: '#000000',
  },
}
SCSS
$custom: #b97bf2;
$custom-light: #d0a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b97bf2",
  "rgb": {
    "r": 185,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 271.261,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69511,
    "c": 0.17708,
    "h": 306.4
  },
  "luminance": 0.30891
}

Semantic roles & 50–950 ramp

primary
#B97BF2
secondary
#E4F4D5
accent
#DE076E
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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