#B157ED#B157ED

#B157ED is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.3% C 0.222 H 309.0°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B157ED
RGBrgb(177, 87, 237)
HSLhsl(276, 81%, 64%)
HSVhsv(276, 63%, 93%)
CMYKcmyk(25.3%, 63.3%, 0%, 7.1%)
CIE-LABlab(54.32, 61.39, -61.06)
CIE-LCHlch(54.32, 86.59, 315.15°)
OKLaboklab(63.29% 0.1397 -0.1724)
OKLCHoklch(63.29% 0.222 309)
XYZxyz(36.8227, 22.2786, 82.4647)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157ED #93ED57
analogous
#6657ED #B157ED #ED57DE
triadic
#B157ED #EDB157 #57EDB1
tetradic
#B157ED #ED6657 #93ED57 #57DEED
square
#B157ED #ED6657 #93ED57 #57DEED
split-complementary
#B157ED #DEED57 #57ED66
monochromatic
#7514B6 #9720E7 #B157ED #CB8EF3 #E4C6F9

Accessibility & contrast

On white

3.85
#B157ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#B157ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157ED
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157ED#FFFFFF#000000##000000
##B157ED1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#3F83EA
Tritanopia (blue-blind)
#A8759A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b157ed;
/* rgb */ color: rgb(177, 87, 237);
/* oklch */ color: oklch(63.3% 0.222 309.0);
Tailwind
colors: {
  custom: {
    50: '#cc8bf4',
    500: '#b157ed',
    950: '#000000',
  },
}
SCSS
$custom: #b157ed;
$custom-light: #cc8bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b157ed",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 237
  },
  "hsl": {
    "h": 276,
    "s": 80.645,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63285,
    "c": 0.22195,
    "h": 309
  },
  "luminance": 0.22278
}

Semantic roles & 50–950 ramp

primary
#B157ED
secondary
#CBEAB5
accent
#DD095E
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B157ED

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

Preview Lab → · Contrast checker → · Palette generator →

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