#B158F5#B158F5

#B158F5 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.9% C 0.229 H 307.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B158F5
RGBrgb(177, 88, 245)
HSLhsl(274, 89%, 65%)
HSVhsv(274, 64%, 96%)
CMYKcmyk(27.8%, 64.1%, 0%, 3.9%)
CIE-LABlab(54.99, 62.67, -64.45)
CIE-LCHlch(54.99, 89.90, 314.20°)
OKLaboklab(63.93% 0.1381 -0.1824)
OKLCHoklch(63.93% 0.229 307.1)
XYZxyz(38.0992, 22.9196, 88.7853)
Luminance0.2292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158F5 #9CF558
analogous
#6258F5 #B158F5 #F558EA
triadic
#B158F5 #F5B158 #58F5B1
tetradic
#B158F5 #F56258 #9CF558 #58EAF5
square
#B158F5 #F56258 #9CF558 #58EAF5
split-complementary
#B158F5 #EAF558 #58F562
monochromatic
#760CC7 #961EF2 #B158F5 #CC92F8 #E7CBFC

Accessibility & contrast

On white

3.76
#B158F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#B158F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158F5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158F5#FFFFFF#000000##000000
##B158F51.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FA
Deuteranopia (green-blind)
#3684F1
Tritanopia (blue-blind)
#A6799F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b158f5;
/* rgb */ color: rgb(177, 88, 245);
/* oklch */ color: oklch(63.9% 0.229 307.1);
Tailwind
colors: {
  custom: {
    50: '#cd8cf9',
    500: '#b158f5',
    950: '#000000',
  },
}
SCSS
$custom: #b158f5;
$custom-light: #cd8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b158f5",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 245
  },
  "hsl": {
    "h": 274.013,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63926,
    "c": 0.22879,
    "h": 307.1
  },
  "luminance": 0.22919
}

Semantic roles & 50–950 ramp

primary
#B158F5
secondary
#D1EFBA
accent
#E50063
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B158F5

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

Preview Lab → · Contrast checker → · Palette generator →

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