#B157E9#B157E9

#B157E9 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.0% C 0.218 H 310.0°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#B157E9
RGBrgb(177, 87, 233)
HSLhsl(277, 77%, 63%)
HSVhsv(277, 63%, 91%)
CMYKcmyk(24%, 62.7%, 0%, 8.6%)
CIE-LABlab(54.08, 60.52, -59.21)
CIE-LCHlch(54.08, 84.67, 315.63°)
OKLaboklab(63.03% 0.1399 -0.167)
OKLCHoklch(63.03% 0.218 310)
XYZxyz(36.2448, 22.0474, 79.4212)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E9 #8FE957
analogous
#6857E9 #B157E9 #E957D8
triadic
#B157E9 #E9B157 #57E9B1
tetradic
#B157E9 #E96857 #8FE957 #57D8E9
square
#B157E9 #E96857 #8FE957 #57D8E9
split-complementary
#B157E9 #D8E957 #57E968
monochromatic
#7417AF #9821E2 #B157E9 #CA8DF0 #E3C3F7

Accessibility & contrast

On white

3.88
#B157E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#B157E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E9
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E9#FFFFFF#000000##000000
##B157E91.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#017DED
Deuteranopia (green-blind)
#4483E6
Tritanopia (blue-blind)
#A97498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b157e9;
/* rgb */ color: rgb(177, 87, 233);
/* oklch */ color: oklch(63.0% 0.218 310.0);
Tailwind
colors: {
  custom: {
    50: '#cc8bf1',
    500: '#b157e9',
    950: '#000000',
  },
}
SCSS
$custom: #b157e9;
$custom-light: #cc8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e9",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 276.986,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63031,
    "c": 0.21788,
    "h": 310
  },
  "luminance": 0.22047
}

Semantic roles & 50–950 ramp

primary
#B157E9
secondary
#C8E8B3
accent
#D90C5B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157E9

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

Preview Lab → · Contrast checker → · Palette generator →

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