#B157EA#B157EA

#B157EA is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.1% C 0.219 H 309.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B157EA
RGBrgb(177, 87, 234)
HSLhsl(277, 78%, 63%)
HSVhsv(277, 63%, 92%)
CMYKcmyk(24.4%, 62.8%, 0%, 8.2%)
CIE-LABlab(54.14, 60.74, -59.68)
CIE-LCHlch(54.14, 85.15, 315.51°)
OKLaboklab(63.09% 0.1399 -0.1684)
OKLCHoklch(63.09% 0.219 309.7)
XYZxyz(36.3880, 22.1047, 80.1757)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157EA #90EA57
analogous
#6757EA #B157EA #EA57D9
triadic
#B157EA #EAB157 #57EAB1
tetradic
#B157EA #EA6757 #90EA57 #57D9EA
square
#B157EA #EA6757 #90EA57 #57D9EA
split-complementary
#B157EA #D9EA57 #57EA67
monochromatic
#7516B1 #9821E3 #B157EA #CA8DF1 #E4C4F8

Accessibility & contrast

On white

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

On black

5.42
#B157EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157EA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157EA#FFFFFF#000000##000000
##B157EA1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#4383E7
Tritanopia (blue-blind)
#A97499
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b157ea;
/* rgb */ color: rgb(177, 87, 234);
/* oklch */ color: oklch(63.1% 0.219 309.7);
Tailwind
colors: {
  custom: {
    50: '#cc8bf1',
    500: '#b157ea',
    950: '#000000',
  },
}
SCSS
$custom: #b157ea;
$custom-light: #cc8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b157ea",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 276.735,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63094,
    "c": 0.21889,
    "h": 309.7
  },
  "luminance": 0.22104
}

Semantic roles & 50–950 ramp

primary
#B157EA
secondary
#C8E9B4
accent
#DA0B5C
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157EA

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

Preview Lab → · Contrast checker → · Palette generator →

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