#B97FF2#B97FF2

#B97FF2 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.1% C 0.171 H 305.7°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#B97FF2
RGBrgb(185, 127, 242)
HSLhsl(270, 82%, 72%)
HSVhsv(270, 48%, 95%)
CMYKcmyk(23.6%, 47.5%, 0%, 5.1%)
CIE-LABlab(63.26, 44.02, -49.53)
CIE-LCHlch(63.26, 66.26, 311.63°)
OKLaboklab(70.14% 0.0998 -0.1386)
OKLCHoklch(70.14% 0.171 305.7)
XYZxyz(43.6206, 31.9041, 87.8473)
Luminance0.3190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97FF2 #B8F27F
analogous
#807FF2 #B97FF2 #F27FF1
triadic
#B97FF2 #F2B97F #7FF2B9
tetradic
#B97FF2 #F2807F #B8F27F #7FF1F2
square
#B97FF2 #F2807F #B8F27F #7FF1F2
split-complementary
#B97FF2 #F1F27F #7FF280
monochromatic
#7C17E0 #9B47EC #B97FF2 #D7B7F8 #F0E3FC

Accessibility & contrast

On white

2.85
#B97FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#B97FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97FF2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97FF2#FFFFFF#000000##000000
##B97FF21.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F97F6
Deuteranopia (green-blind)
#6F99EF
Tritanopia (blue-blind)
#B093AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b97ff2;
/* rgb */ color: rgb(185, 127, 242);
/* oklch */ color: oklch(70.1% 0.171 305.7);
Tailwind
colors: {
  custom: {
    50: '#d0a5f7',
    500: '#b97ff2',
    950: '#000000',
  },
}
SCSS
$custom: #b97ff2;
$custom-light: #d0a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b97ff2",
  "rgb": {
    "r": 185,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 270.261,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70143,
    "c": 0.17079,
    "h": 305.7
  },
  "luminance": 0.31904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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