#BB7EF2#BB7EF2

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

Color values

HEX#BB7EF2
RGBrgb(187, 126, 242)
HSLhsl(272, 82%, 72%)
HSVhsv(272, 48%, 95%)
CMYKcmyk(22.7%, 47.9%, 0%, 5.1%)
CIE-LABlab(63.26, 45.09, -49.52)
CIE-LCHlch(63.26, 66.98, 312.32°)
OKLaboklab(70.19% 0.1035 -0.1386)
OKLCHoklch(70.19% 0.173 306.8)
XYZxyz(43.9781, 31.8977, 87.8272)
Luminance0.3190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB7EF2 #B5F27E
analogous
#817EF2 #BB7EF2 #F27EEF
triadic
#BB7EF2 #F2BB7E #7EF2BB
tetradic
#BB7EF2 #F2817E #B5F27E #7EEFF2
square
#BB7EF2 #F2817E #B5F27E #7EEFF2
split-complementary
#BB7EF2 #EFF27E #7EF281
monochromatic
#8016DF #9E46EC #BB7EF2 #D8B6F8 #F0E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BB7EF2#FFFFFF#000000##000000
##BB7EF21.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)
#6F9AEF
Tritanopia (blue-blind)
#B392AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #bb7ef2;
/* rgb */ color: rgb(187, 126, 242);
/* oklch */ color: oklch(70.2% 0.173 306.8);
Tailwind
colors: {
  custom: {
    50: '#d2a5f7',
    500: '#bb7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #bb7ef2;
$custom-light: #d2a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb7ef2",
  "rgb": {
    "r": 187,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 271.552,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.70186,
    "c": 0.17294,
    "h": 306.8
  },
  "luminance": 0.31897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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