#B157F4#B157F4

#B157F4 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.7% C 0.229 H 307.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B157F4
RGBrgb(177, 87, 244)
HSLhsl(274, 88%, 65%)
HSVhsv(274, 64%, 96%)
CMYKcmyk(27.5%, 64.3%, 0%, 4.3%)
CIE-LABlab(54.76, 62.92, -64.27)
CIE-LCHlch(54.76, 89.94, 314.39°)
OKLaboklab(63.74% 0.1393 -0.1819)
OKLCHoklch(63.74% 0.229 307.4)
XYZxyz(37.8654, 22.6956, 87.9563)
Luminance0.2270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157F4 #9AF457
analogous
#6357F4 #B157F4 #F457E8
triadic
#B157F4 #F4B157 #57F4B1
tetradic
#B157F4 #F46357 #9AF457 #57E8F4
square
#B157F4 #F46357 #9AF457 #57E8F4
split-complementary
#B157F4 #E8F457 #57F463
monochromatic
#760DC4 #961EF0 #B157F4 #CC90F8 #E6CAFC

Accessibility & contrast

On white

3.79
#B157F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#B157F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157F4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157F4#FFFFFF#000000##000000
##B157F41.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F9
Deuteranopia (green-blind)
#3684F0
Tritanopia (blue-blind)
#A6789E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b157f4;
/* rgb */ color: rgb(177, 87, 244);
/* oklch */ color: oklch(63.7% 0.229 307.4);
Tailwind
colors: {
  custom: {
    50: '#cd8cf9',
    500: '#b157f4',
    950: '#000000',
  },
}
SCSS
$custom: #b157f4;
$custom-light: #cd8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b157f4",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 244
  },
  "hsl": {
    "h": 274.395,
    "s": 87.709,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63739,
    "c": 0.22907,
    "h": 307.4
  },
  "luminance": 0.22695
}

Semantic roles & 50–950 ramp

primary
#B157F4
secondary
#CFEEB9
accent
#E40162
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157F4

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

Preview Lab → · Contrast checker → · Palette generator →

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