#B157EB#B157EB

#B157EB is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.2% C 0.220 H 309.5°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B157EB
RGBrgb(177, 87, 235)
HSLhsl(276, 79%, 63%)
HSVhsv(276, 63%, 92%)
CMYKcmyk(24.7%, 63%, 0%, 7.8%)
CIE-LABlab(54.20, 60.96, -60.14)
CIE-LCHlch(54.20, 85.63, 315.39°)
OKLaboklab(63.16% 0.1398 -0.1697)
OKLCHoklch(63.16% 0.22 309.5)
XYZxyz(36.5321, 22.1623, 80.9344)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157EB #91EB57
analogous
#6757EB #B157EB #EB57DB
triadic
#B157EB #EBB157 #57EBB1
tetradic
#B157EB #EB6757 #91EB57 #57DBEB
square
#B157EB #EB6757 #91EB57 #57DBEB
split-complementary
#B157EB #DBEB57 #57EB67
monochromatic
#7515B2 #9820E4 #B157EB #CA8EF2 #E4C4F8

Accessibility & contrast

On white

3.87
#B157EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#B157EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157EB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157EB#FFFFFF#000000##000000
##B157EB1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#4283E8
Tritanopia (blue-blind)
#A97599
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b157eb;
/* rgb */ color: rgb(177, 87, 235);
/* oklch */ color: oklch(63.2% 0.220 309.5);
Tailwind
colors: {
  custom: {
    50: '#cc8bf2',
    500: '#b157eb',
    950: '#000000',
  },
}
SCSS
$custom: #b157eb;
$custom-light: #cc8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b157eb",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 276.486,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63158,
    "c": 0.21991,
    "h": 309.5
  },
  "luminance": 0.22162
}

Semantic roles & 50–950 ramp

primary
#B157EB
secondary
#C9E9B4
accent
#DB0A5C
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157EB

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

Preview Lab → · Contrast checker → · Palette generator →

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