#B151E5#B151E5

#B151E5 is a light, highly saturated violet. Relative luminance 0.209; OKLCH L 62.1% C 0.222 H 311.5°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B151E5
RGBrgb(177, 81, 229)
HSLhsl(279, 74%, 61%)
HSVhsv(279, 65%, 90%)
CMYKcmyk(22.7%, 64.6%, 0%, 10.2%)
CIE-LABlab(52.83, 62.44, -58.97)
CIE-LCHlch(52.83, 85.88, 316.64°)
OKLaboklab(62.05% 0.1469 -0.1663)
OKLCHoklch(62.05% 0.222 311.5)
XYZxyz(35.2141, 20.8900, 76.2907)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151E5 #85E551
analogous
#6751E5 #B151E5 #E551CF
triadic
#B151E5 #E5B151 #51E5B1
tetradic
#B151E5 #E56751 #85E551 #51CFE5
square
#B151E5 #E56751 #85E551 #51CFE5
split-complementary
#B151E5 #CFE551 #51E567
monochromatic
#7218A3 #9820D8 #B151E5 #C986ED #E1BBF5

Accessibility & contrast

On white

4.06
#B151E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#B151E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151E5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151E5#FFFFFF#000000##000000
##B151E51.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#4280E2
Tritanopia (blue-blind)
#AB6F94
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b151e5;
/* rgb */ color: rgb(177, 81, 229);
/* oklch */ color: oklch(62.1% 0.222 311.5);
Tailwind
colors: {
  custom: {
    50: '#cc88ee',
    500: '#b151e5',
    950: '#000000',
  },
}
SCSS
$custom: #b151e5;
$custom-light: #cc88ee;
$custom-dark: #000000;
JSON
{
  "hex": "#b151e5",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 278.919,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62052,
    "c": 0.22186,
    "h": 311.5
  },
  "luminance": 0.20889
}

Semantic roles & 50–950 ramp

primary
#B151E5
secondary
#C1E5AD
accent
#D60F55
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B151E5

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

Preview Lab → · Contrast checker → · Palette generator →

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