#B158CA#B158CA

#B158CA is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.3% C 0.185 H 318.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B158CA
RGBrgb(177, 88, 202)
HSLhsl(287, 52%, 57%)
HSVhsv(287, 56%, 79%)
CMYKcmyk(12.4%, 56.4%, 0%, 20.8%)
CIE-LABlab(52.50, 53.59, -44.15)
CIE-LCHlch(52.50, 69.44, 320.51°)
OKLaboklab(61.32% 0.1384 -0.123)
OKLCHoklch(61.32% 0.185 318.4)
XYZxyz(32.2804, 20.5921, 58.1399)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158CA #71CA58
analogous
#7858CA #B158CA #CA58AA
triadic
#B158CA #CAB158 #58CAB1
tetradic
#B158CA #CA7858 #71CA58 #58AACA
square
#B158CA #CA7858 #71CA58 #58AACA
split-complementary
#B158CA #AACA58 #58CA78
monochromatic
#6C287F #9437AE #B158CA #C786D9 #DCB5E7

Accessibility & contrast

On white

4.10
#B158CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#B158CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158CA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158CA#FFFFFF#000000##000000
##B158CA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E77CE
Deuteranopia (green-blind)
#5E80C7
Tritanopia (blue-blind)
#B16A89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b158ca;
/* rgb */ color: rgb(177, 88, 202);
/* oklch */ color: oklch(61.3% 0.185 318.4);
Tailwind
colors: {
  custom: {
    50: '#cb8bda',
    500: '#b158ca',
    950: '#000000',
  },
}
SCSS
$custom: #b158ca;
$custom-light: #cb8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#b158ca",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 286.842,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61318,
    "c": 0.18513,
    "h": 318.4
  },
  "luminance": 0.20591
}

Semantic roles & 50–950 ramp

primary
#B158CA
secondary
#B2D6A8
accent
#DB4D6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B158CA

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

Preview Lab → · Contrast checker → · Palette generator →

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