#B157E6#B157E6

#B157E6 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.8% C 0.215 H 310.7°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B157E6
RGBrgb(177, 87, 230)
HSLhsl(278, 74%, 62%)
HSVhsv(278, 62%, 90%)
CMYKcmyk(23%, 62.2%, 0%, 9.8%)
CIE-LABlab(53.90, 59.88, -57.82)
CIE-LCHlch(53.90, 83.24, 316.00°)
OKLaboklab(62.84% 0.14 -0.1629)
OKLCHoklch(62.84% 0.215 310.7)
XYZxyz(35.8199, 21.8774, 77.1834)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E6 #8CE657
analogous
#6A57E6 #B157E6 #E657D4
triadic
#B157E6 #E6B157 #57E6B1
tetradic
#B157E6 #E66A57 #8CE657 #57D4E6
square
#B157E6 #E66A57 #8CE657 #57D4E6
split-complementary
#B157E6 #D4E657 #57E66A
monochromatic
#7419A9 #9822DE #B157E6 #CA8CEE #E2C2F6

Accessibility & contrast

On white

3.91
#B157E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#B157E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E6#FFFFFF#000000##000000
##B157E61.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#107DEA
Deuteranopia (green-blind)
#4782E3
Tritanopia (blue-blind)
#AA7397
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b157e6;
/* rgb */ color: rgb(177, 87, 230);
/* oklch */ color: oklch(62.8% 0.215 310.7);
Tailwind
colors: {
  custom: {
    50: '#cc8bef',
    500: '#b157e6',
    950: '#000000',
  },
}
SCSS
$custom: #b157e6;
$custom-light: #cc8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e6",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 230
  },
  "hsl": {
    "h": 277.762,
    "s": 74.093,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62842,
    "c": 0.21483,
    "h": 310.7
  },
  "luminance": 0.21877
}

Semantic roles & 50–950 ramp

primary
#B157E6
secondary
#C6E7B2
accent
#D60F59
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157E6

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

Preview Lab → · Contrast checker → · Palette generator →

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