#B157E7#B157E7

#B157E7 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.9% C 0.216 H 310.4°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B157E7
RGBrgb(177, 87, 231)
HSLhsl(278, 75%, 62%)
HSVhsv(278, 62%, 91%)
CMYKcmyk(23.4%, 62.3%, 0%, 9.4%)
CIE-LABlab(53.96, 60.09, -58.28)
CIE-LCHlch(53.96, 83.71, 315.88°)
OKLaboklab(62.91% 0.14 -0.1643)
OKLCHoklch(62.91% 0.216 310.4)
XYZxyz(35.9607, 21.9338, 77.9251)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157E7 #8DE757
analogous
#6957E7 #B157E7 #E757D5
triadic
#B157E7 #E7B157 #57E7B1
tetradic
#B157E7 #E76957 #8DE757 #57D5E7
square
#B157E7 #E76957 #8DE757 #57D5E7
split-complementary
#B157E7 #D5E757 #57E769
monochromatic
#7418AB #9821DF #B157E7 #CA8DEF #E3C2F6

Accessibility & contrast

On white

3.90
#B157E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#B157E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157E7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157E7#FFFFFF#000000##000000
##B157E71.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C7DEB
Deuteranopia (green-blind)
#4683E4
Tritanopia (blue-blind)
#AA7397
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b157e7;
/* rgb */ color: rgb(177, 87, 231);
/* oklch */ color: oklch(62.9% 0.216 310.4);
Tailwind
colors: {
  custom: {
    50: '#cc8bef',
    500: '#b157e7',
    950: '#000000',
  },
}
SCSS
$custom: #b157e7;
$custom-light: #cc8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#b157e7",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 277.5,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62905,
    "c": 0.21584,
    "h": 310.4
  },
  "luminance": 0.21933
}

Semantic roles & 50–950 ramp

primary
#B157E7
secondary
#C6E7B3
accent
#D70E5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157E7

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

Preview Lab → · Contrast checker → · Palette generator →

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