#B97EF2#B97EF2

#B97EF2 is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.0% C 0.172 H 305.9°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#B97EF2
RGBrgb(185, 126, 242)
HSLhsl(271, 82%, 72%)
HSVhsv(271, 48%, 95%)
CMYKcmyk(23.6%, 47.9%, 0%, 5.1%)
CIE-LABlab(63.05, 44.56, -49.86)
CIE-LCHlch(63.05, 66.88, 311.79°)
OKLaboklab(69.98% 0.1011 -0.1396)
OKLCHoklch(69.98% 0.172 305.9)
XYZxyz(43.4921, 31.6471, 87.8045)
Luminance0.3165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97EF2 #B7F27E
analogous
#7F7EF2 #B97EF2 #F27EF1
triadic
#B97EF2 #F2B97E #7EF2B9
tetradic
#B97EF2 #F27F7E #B7F27E #7EF1F2
square
#B97EF2 #F27F7E #B7F27E #7EF1F2
split-complementary
#B97EF2 #F1F27E #7EF27F
monochromatic
#7D16DF #9B46EC #B97EF2 #D7B6F8 #F0E3FC

Accessibility & contrast

On white

2.87
#B97EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#B97EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97EF2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97EF2#FFFFFF#000000##000000
##B97EF21.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E97F6
Deuteranopia (green-blind)
#6E99EF
Tritanopia (blue-blind)
#B092AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b97ef2;
/* rgb */ color: rgb(185, 126, 242);
/* oklch */ color: oklch(70.0% 0.172 305.9);
Tailwind
colors: {
  custom: {
    50: '#d0a5f7',
    500: '#b97ef2',
    950: '#000000',
  },
}
SCSS
$custom: #b97ef2;
$custom-light: #d0a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b97ef2",
  "rgb": {
    "r": 185,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 270.517,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69984,
    "c": 0.17237,
    "h": 305.9
  },
  "luminance": 0.31647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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