#B151E8#B151E8

#B151E8 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.2% C 0.225 H 310.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B151E8
RGBrgb(177, 81, 232)
HSLhsl(278, 77%, 61%)
HSVhsv(278, 65%, 91%)
CMYKcmyk(23.7%, 65.1%, 0%, 9%)
CIE-LABlab(53.01, 63.07, -60.36)
CIE-LCHlch(53.01, 87.30, 316.26°)
OKLaboklab(62.24% 0.1467 -0.1703)
OKLCHoklch(62.24% 0.225 310.7)
XYZxyz(35.6366, 21.0590, 78.5158)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151E8 #88E851
analogous
#6651E8 #B151E8 #E851D3
triadic
#B151E8 #E8B151 #51E8B1
tetradic
#B151E8 #E86651 #88E851 #51D3E8
square
#B151E8 #E86651 #88E851 #51D3E8
split-complementary
#B151E8 #D3E851 #51E866
monochromatic
#7316A8 #981DDE #B151E8 #C987EF #E1BDF6

Accessibility & contrast

On white

4.03
#B151E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#B151E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151E8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151E8#FFFFFF#000000##000000
##B151E81.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AED
Deuteranopia (green-blind)
#3E80E5
Tritanopia (blue-blind)
#AA7096
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b151e8;
/* rgb */ color: rgb(177, 81, 232);
/* oklch */ color: oklch(62.2% 0.225 310.7);
Tailwind
colors: {
  custom: {
    50: '#cc88f0',
    500: '#b151e8',
    950: '#000000',
  },
}
SCSS
$custom: #b151e8;
$custom-light: #cc88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b151e8",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 278.146,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62244,
    "c": 0.22482,
    "h": 310.7
  },
  "luminance": 0.21058
}

Semantic roles & 50–950 ramp

primary
#B151E8
secondary
#C3E7AE
accent
#D90D57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B151E8

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

Preview Lab → · Contrast checker → · Palette generator →

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