#B157E1#B157E1

#B157E1 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.5% C 0.210 H 311.9°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B157E1
RGBrgb(177, 87, 225)
HSLhsl(279, 70%, 61%)
HSVhsv(279, 61%, 88%)
CMYKcmyk(21.3%, 61.3%, 0%, 11.8%)
CIE-LABlab(53.60, 58.82, -55.47)
CIE-LCHlch(53.60, 80.85, 316.67°)
OKLaboklab(62.53% 0.1402 -0.156)
OKLCHoklch(62.53% 0.21 311.9)
XYZxyz(35.1278, 21.6006, 73.5384)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E1 #87E157
analogous
#6C57E1 #B157E1 #E157CC
triadic
#B157E1 #E1B157 #57E1B1
tetradic
#B157E1 #E16C57 #87E157 #57CCE1
square
#B157E1 #E16C57 #87E157 #57CCE1
split-complementary
#B157E1 #CCE157 #57E16C
monochromatic
#731DA1 #9826D5 #B157E1 #C98BEA #E1BFF4

Accessibility & contrast

On white

3.95
#B157E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#B157E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E1
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E1#FFFFFF#000000##000000
##B157E11.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E7CE5
Deuteranopia (green-blind)
#4C82DE
Tritanopia (blue-blind)
#AC7194
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b157e1;
/* rgb */ color: rgb(177, 87, 225);
/* oklch */ color: oklch(62.5% 0.210 311.9);
Tailwind
colors: {
  custom: {
    50: '#cc8beb',
    500: '#b157e1',
    950: '#000000',
  },
}
SCSS
$custom: #b157e1;
$custom-light: #cc8beb;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e1",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 279.13,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62533,
    "c": 0.20975,
    "h": 311.9
  },
  "luminance": 0.216
}

Semantic roles & 50–950 ramp

primary
#B157E1
secondary
#C2E4B0
accent
#D21456
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157E1

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

Preview Lab → · Contrast checker → · Palette generator →

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