#B157F3#B157F3

#B157F3 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.7% C 0.228 H 307.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B157F3
RGBrgb(177, 87, 243)
HSLhsl(275, 87%, 65%)
HSVhsv(275, 64%, 95%)
CMYKcmyk(27.2%, 64.2%, 0%, 4.7%)
CIE-LABlab(54.69, 62.70, -63.81)
CIE-LCHlch(54.69, 89.46, 314.49°)
OKLaboklab(63.67% 0.1394 -0.1805)
OKLCHoklch(63.67% 0.228 307.7)
XYZxyz(37.7140, 22.6351, 87.1589)
Luminance0.2263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157F3 #99F357
analogous
#6357F3 #B157F3 #F357E7
triadic
#B157F3 #F3B157 #57F3B1
tetradic
#B157F3 #F36357 #99F357 #57E7F3
square
#B157F3 #F36357 #99F357 #57E7F3
split-complementary
#B157F3 #E7F357 #57F363
monochromatic
#760EC2 #961EEF #B157F3 #CC90F7 #E6C9FB

Accessibility & contrast

On white

3.80
#B157F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#B157F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157F3
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157F3#FFFFFF#000000##000000
##B157F31.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F8
Deuteranopia (green-blind)
#3884F0
Tritanopia (blue-blind)
#A7789E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b157f3;
/* rgb */ color: rgb(177, 87, 243);
/* oklch */ color: oklch(63.7% 0.228 307.7);
Tailwind
colors: {
  custom: {
    50: '#cd8cf8',
    500: '#b157f3',
    950: '#000000',
  },
}
SCSS
$custom: #b157f3;
$custom-light: #cd8cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#b157f3",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 243
  },
  "hsl": {
    "h": 274.615,
    "s": 86.667,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63673,
    "c": 0.22805,
    "h": 307.7
  },
  "luminance": 0.22635
}

Semantic roles & 50–950 ramp

primary
#B157F3
secondary
#CFEEB8
accent
#E30261
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157F3

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

Preview Lab → · Contrast checker → · Palette generator →

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