#B157EF#B157EF

#B157EF is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.4% C 0.224 H 308.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B157EF
RGBrgb(177, 87, 239)
HSLhsl(276, 83%, 64%)
HSVhsv(276, 64%, 94%)
CMYKcmyk(25.9%, 63.6%, 0%, 6.3%)
CIE-LABlab(54.44, 61.82, -61.98)
CIE-LCHlch(54.44, 87.54, 314.93°)
OKLaboklab(63.41% 0.1396 -0.1751)
OKLCHoklch(63.41% 0.224 308.6)
XYZxyz(37.1165, 22.3961, 84.0122)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157EF #95EF57
analogous
#6557EF #B157EF #EF57E1
triadic
#B157EF #EFB157 #57EFB1
tetradic
#B157EF #EF6557 #95EF57 #57E1EF
square
#B157EF #EF6557 #95EF57 #57E1EF
split-complementary
#B157EF #E1EF57 #57EF65
monochromatic
#7512BA #971FEA #B157EF #CB8FF4 #E5C7FA

Accessibility & contrast

On white

3.83
#B157EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#B157EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157EF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157EF#FFFFFF#000000##000000
##B157EF1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#3D83EC
Tritanopia (blue-blind)
#A8769C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b157ef;
/* rgb */ color: rgb(177, 87, 239);
/* oklch */ color: oklch(63.4% 0.224 308.6);
Tailwind
colors: {
  custom: {
    50: '#cc8cf5',
    500: '#b157ef',
    950: '#000000',
  },
}
SCSS
$custom: #b157ef;
$custom-light: #cc8cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b157ef",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 275.526,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63414,
    "c": 0.22398,
    "h": 308.6
  },
  "luminance": 0.22395
}

Semantic roles & 50–950 ramp

primary
#B157EF
secondary
#CCECB6
accent
#DF065F
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157EF

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

Preview Lab → · Contrast checker → · Palette generator →

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