#B157F0#B157F0

#B157F0 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.5% C 0.225 H 308.3°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B157F0
RGBrgb(177, 87, 240)
HSLhsl(275, 84%, 64%)
HSVhsv(275, 64%, 94%)
CMYKcmyk(26.3%, 63.7%, 0%, 5.9%)
CIE-LABlab(54.51, 62.04, -62.44)
CIE-LCHlch(54.51, 88.02, 314.82°)
OKLaboklab(63.48% 0.1396 -0.1765)
OKLCHoklch(63.48% 0.225 308.3)
XYZxyz(37.2646, 22.4553, 84.7924)
Luminance0.2245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157F0 #96F057
analogous
#6557F0 #B157F0 #F057E3
triadic
#B157F0 #F0B157 #57F0B1
tetradic
#B157F0 #F06557 #96F057 #57E3F0
square
#B157F0 #F06557 #96F057 #57E3F0
split-complementary
#B157F0 #E3F057 #57F065
monochromatic
#7511BC #971FEB #B157F0 #CB8FF5 #E5C7FA

Accessibility & contrast

On white

3.82
#B157F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#B157F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157F0
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157F0#FFFFFF#000000##000000
##B157F01.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF5
Deuteranopia (green-blind)
#3C83ED
Tritanopia (blue-blind)
#A7779C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b157f0;
/* rgb */ color: rgb(177, 87, 240);
/* oklch */ color: oklch(63.5% 0.225 308.3);
Tailwind
colors: {
  custom: {
    50: '#cd8cf6',
    500: '#b157f0',
    950: '#000000',
  },
}
SCSS
$custom: #b157f0;
$custom-light: #cd8cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#b157f0",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 240
  },
  "hsl": {
    "h": 275.294,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63478,
    "c": 0.225,
    "h": 308.3
  },
  "luminance": 0.22455
}

Semantic roles & 50–950 ramp

primary
#B157F0
secondary
#CDECB7
accent
#E0055F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157F0

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

Preview Lab → · Contrast checker → · Palette generator →

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