#B157E2#B157E2

#B157E2 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.6% C 0.211 H 311.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B157E2
RGBrgb(177, 87, 226)
HSLhsl(279, 71%, 61%)
HSVhsv(279, 62%, 89%)
CMYKcmyk(21.7%, 61.5%, 0%, 11.4%)
CIE-LABlab(53.66, 59.03, -55.94)
CIE-LCHlch(53.66, 81.33, 316.54°)
OKLaboklab(62.59% 0.1401 -0.1574)
OKLCHoklch(62.59% 0.211 311.7)
XYZxyz(35.2646, 21.6553, 74.2590)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E2 #88E257
analogous
#6C57E2 #B157E2 #E257CE
triadic
#B157E2 #E2B157 #57E2B1
tetradic
#B157E2 #E26C57 #88E257 #57CEE2
square
#B157E2 #E26C57 #88E257 #57CEE2
split-complementary
#B157E2 #CEE257 #57E26C
monochromatic
#731CA3 #9825D7 #B157E2 #C98BEB #E1BFF4

Accessibility & contrast

On white

3.94
#B157E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#B157E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E2#FFFFFF#000000##000000
##B157E21.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7CE6
Deuteranopia (green-blind)
#4B82DF
Tritanopia (blue-blind)
#AB7195
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b157e2;
/* rgb */ color: rgb(177, 87, 226);
/* oklch */ color: oklch(62.6% 0.211 311.7);
Tailwind
colors: {
  custom: {
    50: '#cc8bec',
    500: '#b157e2',
    950: '#000000',
  },
}
SCSS
$custom: #b157e2;
$custom-light: #cc8bec;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e2",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 226
  },
  "hsl": {
    "h": 278.849,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62594,
    "c": 0.21076,
    "h": 311.7
  },
  "luminance": 0.21654
}

Semantic roles & 50–950 ramp

primary
#B157E2
secondary
#C3E4B0
accent
#D31356
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157E2

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

Preview Lab → · Contrast checker → · Palette generator →

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