#B151EF#B151EF

#B151EF is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.7% C 0.232 H 309.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B151EF
RGBrgb(177, 81, 239)
HSLhsl(276, 83%, 63%)
HSVhsv(276, 66%, 94%)
CMYKcmyk(25.9%, 66.1%, 0%, 6.3%)
CIE-LABlab(53.45, 64.56, -63.58)
CIE-LCHlch(53.45, 90.61, 315.44°)
OKLaboklab(62.7% 0.1462 -0.1798)
OKLCHoklch(62.7% 0.232 309.1)
XYZxyz(36.6508, 21.4646, 83.8570)
Luminance0.2146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151EF #8FEF51
analogous
#6251EF #B151EF #EF51DE
triadic
#B151EF #EFB151 #51EFB1
tetradic
#B151EF #EF6251 #8FEF51 #51DEEF
square
#B151EF #EF6251 #8FEF51 #51DEEF
split-complementary
#B151EF #DEEF51 #51EF62
monochromatic
#7411B5 #9819EA #B151EF #CA89F4 #E3C1F9

Accessibility & contrast

On white

3.97
#B151EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#B151EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151EF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151EF#FFFFFF#000000##000000
##B151EF1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#3581EB
Tritanopia (blue-blind)
#A8729A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b151ef;
/* rgb */ color: rgb(177, 81, 239);
/* oklch */ color: oklch(62.7% 0.232 309.1);
Tailwind
colors: {
  custom: {
    50: '#cd88f5',
    500: '#b151ef',
    950: '#000000',
  },
}
SCSS
$custom: #b151ef;
$custom-light: #cd88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b151ef",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 276.456,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62701,
    "c": 0.23172,
    "h": 309.1
  },
  "luminance": 0.21464
}

Semantic roles & 50–950 ramp

primary
#B151EF
secondary
#C8EAB1
accent
#E0065B
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B151EF

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

Preview Lab → · Contrast checker → · Palette generator →

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