#B157E8#B157E8

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

Color values

HEX#B157E8
RGBrgb(177, 87, 232)
HSLhsl(277, 76%, 63%)
HSVhsv(277, 63%, 91%)
CMYKcmyk(23.7%, 62.5%, 0%, 9%)
CIE-LABlab(54.02, 60.31, -58.75)
CIE-LCHlch(54.02, 84.19, 315.75°)
OKLaboklab(62.97% 0.14 -0.1656)
OKLCHoklch(62.97% 0.217 310.2)
XYZxyz(36.1024, 21.9904, 78.6710)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E8 #8EE857
analogous
#6857E8 #B157E8 #E857D7
triadic
#B157E8 #E8B157 #57E8B1
tetradic
#B157E8 #E86857 #8EE857 #57D7E8
square
#B157E8 #E86857 #8EE857 #57D7E8
split-complementary
#B157E8 #D7E857 #57E868
monochromatic
#7418AD #9821E1 #B157E8 #CA8DEF #E3C3F7

Accessibility & contrast

On white

3.89
#B157E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#B157E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E8#FFFFFF#000000##000000
##B157E81.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#067DEC
Deuteranopia (green-blind)
#4583E5
Tritanopia (blue-blind)
#AA7498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b157e8;
/* rgb */ color: rgb(177, 87, 232);
/* oklch */ color: oklch(63.0% 0.217 310.2);
Tailwind
colors: {
  custom: {
    50: '#cc8bf0',
    500: '#b157e8',
    950: '#000000',
  },
}
SCSS
$custom: #b157e8;
$custom-light: #cc8bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e8",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 277.241,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62968,
    "c": 0.21686,
    "h": 310.2
  },
  "luminance": 0.2199
}

Semantic roles & 50–950 ramp

primary
#B157E8
secondary
#C7E8B3
accent
#D80D5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #B157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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