#B157FA#B157FA

#B157FA is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 64.1% C 0.235 H 306.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#B157FA
RGBrgb(177, 87, 250)
HSLhsl(273, 94%, 66%)
HSVhsv(273, 65%, 98%)
CMYKcmyk(29.2%, 65.2%, 0%, 2%)
CIE-LABlab(55.14, 64.24, -66.99)
CIE-LCHlch(55.14, 92.82, 313.80°)
OKLaboklab(64.14% 0.1388 -0.1898)
OKLCHoklch(64.14% 0.235 306.2)
XYZxyz(38.7913, 23.0660, 92.8326)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157FA #A0FA57
analogous
#5F57FA #B157FA #FA57F1
triadic
#B157FA #FAB157 #57FAB1
tetradic
#B157FA #FA5F57 #A0FA57 #57F1FA
square
#B157FA #FA5F57 #A0FA57 #57F1FA
split-complementary
#B157FA #F1FA57 #57FA5F
monochromatic
#7606D0 #951CF8 #B157FA #CD92FC #E8CEFE

Accessibility & contrast

On white

3.74
#B157FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#B157FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157FA
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157FA#FFFFFF#000000##000000
##B157FA1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2C84F6
Tritanopia (blue-blind)
#A57AA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b157fa;
/* rgb */ color: rgb(177, 87, 250);
/* oklch */ color: oklch(64.1% 0.235 306.2);
Tailwind
colors: {
  custom: {
    50: '#cd8cfd',
    500: '#b157fa',
    950: '#000000',
  },
}
SCSS
$custom: #b157fa;
$custom-light: #cd8cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b157fa",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 250
  },
  "hsl": {
    "h": 273.129,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64136,
    "c": 0.23518,
    "h": 306.2
  },
  "luminance": 0.23066
}

Semantic roles & 50–950 ramp

primary
#B157FA
secondary
#D4F1BC
accent
#E60067
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B157FA

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

Preview Lab → · Contrast checker → · Palette generator →

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