#B158DF#B158DF

#B158DF is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.5% C 0.206 H 312.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B158DF
RGBrgb(177, 88, 223)
HSLhsl(280, 68%, 61%)
HSVhsv(280, 61%, 87%)
CMYKcmyk(20.6%, 60.5%, 0%, 12.5%)
CIE-LABlab(53.66, 57.92, -54.25)
CIE-LCHlch(53.66, 79.36, 316.87°)
OKLaboklab(62.54% 0.139 -0.1525)
OKLCHoklch(62.54% 0.206 312.3)
XYZxyz(34.9381, 21.6552, 72.1371)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158DF #86DF58
analogous
#6D58DF #B158DF #DF58C9
triadic
#B158DF #DFB158 #58DFB1
tetradic
#B158DF #DF6D58 #86DF58 #58C9DF
square
#B158DF #DF6D58 #86DF58 #58C9DF
split-complementary
#B158DF #C9DF58 #58DF6D
monochromatic
#731E9E #9828D2 #B158DF #C98BE9 #E1BFF3

Accessibility & contrast

On white

3.94
#B158DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#B158DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158DF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158DF#FFFFFF#000000##000000
##B158DF1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#257CE3
Deuteranopia (green-blind)
#4F82DC
Tritanopia (blue-blind)
#AC7193
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b158df;
/* rgb */ color: rgb(177, 88, 223);
/* oklch */ color: oklch(62.5% 0.206 312.3);
Tailwind
colors: {
  custom: {
    50: '#cc8cea',
    500: '#b158df',
    950: '#000000',
  },
}
SCSS
$custom: #b158df;
$custom-light: #cc8cea;
$custom-dark: #000000;
JSON
{
  "hex": "#b158df",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 279.556,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.62538,
    "c": 0.20631,
    "h": 312.3
  },
  "luminance": 0.21654
}

Semantic roles & 50–950 ramp

primary
#B158DF
secondary
#C1E3B0
accent
#D01655
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158DF

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

Preview Lab → · Contrast checker → · Palette generator →

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