#B158F1#B158F1

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

Color values

HEX#B158F1
RGBrgb(177, 88, 241)
HSLhsl(275, 85%, 65%)
HSVhsv(275, 63%, 95%)
CMYKcmyk(26.6%, 63.5%, 0%, 5.5%)
CIE-LABlab(54.74, 61.79, -62.63)
CIE-LCHlch(54.74, 87.98, 314.62°)
OKLaboklab(63.67% 0.1384 -0.177)
OKLCHoklch(63.67% 0.225 308)
XYZxyz(37.4951, 22.6780, 85.6041)
Luminance0.2268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158F1 #98F158
analogous
#6558F1 #B158F1 #F158E4
triadic
#B158F1 #F1B158 #58F1B1
tetradic
#B158F1 #F16558 #98F158 #58E4F1
square
#B158F1 #F16558 #98F158 #58E4F1
split-complementary
#B158F1 #E4F158 #58F165
monochromatic
#7610BF #9720EC #B158F1 #CB90F6 #E6C9FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B158F1#FFFFFF#000000##000000
##B158F11.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)
#0080F6
Deuteranopia (green-blind)
#3C84EE
Tritanopia (blue-blind)
#A7789D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b158f1;
/* rgb */ color: rgb(177, 88, 241);
/* oklch */ color: oklch(63.7% 0.225 308.0);
Tailwind
colors: {
  custom: {
    50: '#cd8cf6',
    500: '#b158f1',
    950: '#000000',
  },
}
SCSS
$custom: #b158f1;
$custom-light: #cd8cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#b158f1",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 241
  },
  "hsl": {
    "h": 274.902,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63666,
    "c": 0.2247,
    "h": 308
  },
  "luminance": 0.22677
}

Semantic roles & 50–950 ramp

primary
#B158F1
secondary
#CEEDB8
accent
#E10561
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B158F1

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

Preview Lab → · Contrast checker → · Palette generator →

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