#B157E4#B157E4

#B157E4 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.7% C 0.213 H 311.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B157E4
RGBrgb(177, 87, 228)
HSLhsl(278, 72%, 62%)
HSVhsv(278, 62%, 89%)
CMYKcmyk(22.4%, 61.8%, 0%, 10.6%)
CIE-LABlab(53.78, 59.45, -56.88)
CIE-LCHlch(53.78, 82.28, 316.27°)
OKLaboklab(62.72% 0.1401 -0.1602)
OKLCHoklch(62.72% 0.213 311.2)
XYZxyz(35.5407, 21.7657, 75.7127)
Luminance0.2177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E4 #8AE457
analogous
#6B57E4 #B157E4 #E457D1
triadic
#B157E4 #E4B157 #57E4B1
tetradic
#B157E4 #E46B57 #8AE457 #57D1E4
square
#B157E4 #E46B57 #8AE457 #57D1E4
split-complementary
#B157E4 #D1E457 #57E46B
monochromatic
#741BA6 #9823DB #B157E4 #C98CEC #E2C0F5

Accessibility & contrast

On white

3.92
#B157E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#B157E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E4
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E4#FFFFFF#000000##000000
##B157E41.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#177CE8
Deuteranopia (green-blind)
#4982E1
Tritanopia (blue-blind)
#AB7296
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b157e4;
/* rgb */ color: rgb(177, 87, 228);
/* oklch */ color: oklch(62.7% 0.213 311.2);
Tailwind
colors: {
  custom: {
    50: '#cc8bed',
    500: '#b157e4',
    950: '#000000',
  },
}
SCSS
$custom: #b157e4;
$custom-light: #cc8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e4",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 278.298,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62718,
    "c": 0.2128,
    "h": 311.2
  },
  "luminance": 0.21765
}

Semantic roles & 50–950 ramp

primary
#B157E4
secondary
#C4E6B1
accent
#D41158
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157E4

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

Preview Lab → · Contrast checker → · Palette generator →

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