#B158EF#B158EF

#B158EF is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.5% C 0.223 H 308.5°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B158EF
RGBrgb(177, 88, 239)
HSLhsl(275, 83%, 64%)
HSVhsv(275, 63%, 94%)
CMYKcmyk(25.9%, 63.2%, 0%, 6.3%)
CIE-LABlab(54.62, 61.36, -61.71)
CIE-LCHlch(54.62, 87.02, 314.84°)
OKLaboklab(63.54% 0.1385 -0.1743)
OKLCHoklch(63.54% 0.223 308.5)
XYZxyz(37.1980, 22.5591, 84.0394)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158EF #96EF58
analogous
#6658EF #B158EF #EF58E2
triadic
#B158EF #EFB158 #58EFB1
tetradic
#B158EF #EF6658 #96EF58 #58E2EF
square
#B158EF #EF6658 #96EF58 #58E2EF
split-complementary
#B158EF #E2EF58 #58EF66
monochromatic
#7512BB #9720EA #B158EF #CB90F4 #E5C8FA

Accessibility & contrast

On white

3.81
#B158EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#B158EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158EF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158EF#FFFFFF#000000##000000
##B158EF1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#3E84EC
Tritanopia (blue-blind)
#A8779C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b158ef;
/* rgb */ color: rgb(177, 88, 239);
/* oklch */ color: oklch(63.5% 0.223 308.5);
Tailwind
colors: {
  custom: {
    50: '#cc8cf5',
    500: '#b158ef',
    950: '#000000',
  },
}
SCSS
$custom: #b158ef;
$custom-light: #cc8cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b158ef",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 275.364,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63537,
    "c": 0.22266,
    "h": 308.5
  },
  "luminance": 0.22559
}

Semantic roles & 50–950 ramp

primary
#B158EF
secondary
#CDECB7
accent
#DF075F
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B158EF

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

Preview Lab → · Contrast checker → · Palette generator →

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