#B97DFE#B97DFE

#B97DFE is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.5% C 0.188 H 303.4°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#B97DFE
RGBrgb(185, 125, 254)
HSLhsl(268, 98%, 74%)
HSVhsv(268, 51%, 100%)
CMYKcmyk(27.2%, 50.8%, 0%, 0.4%)
CIE-LABlab(63.46, 47.87, -55.82)
CIE-LCHlch(63.46, 73.54, 310.61°)
OKLaboklab(70.49% 0.1035 -0.157)
OKLCHoklch(70.49% 0.188 303.4)
XYZxyz(45.2266, 32.1374, 97.5672)
Luminance0.3214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97DFE #C2FE7D
analogous
#7D82FE #B97DFE #F97DFE
triadic
#B97DFE #FEB97D #7DFEB9
tetradic
#B97DFE #FE7D82 #C2FE7D #7DFEF9
square
#B97DFE #FE7D82 #C2FE7D #7DFEF9
split-complementary
#B97DFE #FEF97D #82FE7D
monochromatic
#7804FD #9840FE #B97DFE #DABAFE #EFE1FF

Accessibility & contrast

On white

2.83
#B97DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#B97DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97DFE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97DFE#FFFFFF#000000##000000
##B97DFE1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5398FF
Deuteranopia (green-blind)
#6499FB
Tritanopia (blue-blind)
#AD95B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b97dfe;
/* rgb */ color: rgb(185, 125, 254);
/* oklch */ color: oklch(70.5% 0.188 303.4);
Tailwind
colors: {
  custom: {
    50: '#d1a4ff',
    500: '#b97dfe',
    950: '#000000',
  },
}
SCSS
$custom: #b97dfe;
$custom-light: #d1a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b97dfe",
  "rgb": {
    "r": 185,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 267.907,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70486,
    "c": 0.18806,
    "h": 303.4
  },
  "luminance": 0.32137
}

Semantic roles & 50–950 ramp

primary
#B97DFE
secondary
#E7F7D4
accent
#E6007B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B97DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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