#B158CD#B158CD

#B158CD is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.5% C 0.188 H 317.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#B158CD
RGBrgb(177, 88, 205)
HSLhsl(286, 54%, 57%)
HSVhsv(286, 57%, 80%)
CMYKcmyk(13.7%, 57.1%, 0%, 19.6%)
CIE-LABlab(52.66, 54.19, -45.62)
CIE-LCHlch(52.66, 70.84, 319.91°)
OKLaboklab(61.49% 0.1385 -0.1273)
OKLCHoklch(61.49% 0.188 317.4)
XYZxyz(32.6391, 20.7355, 60.0288)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158CD #74CD58
analogous
#7758CD #B158CD #CD58AF
triadic
#B158CD #CDB158 #58CDB1
tetradic
#B158CD #CD7758 #74CD58 #58AFCD
square
#B158CD #CD7758 #74CD58 #58AFCD
split-complementary
#B158CD #AFCD58 #58CD77
monochromatic
#6D2783 #9435B2 #B158CD #C787DB #DDB6E9

Accessibility & contrast

On white

4.08
#B158CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#B158CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158CD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158CD#FFFFFF#000000##000000
##B158CD1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C78D1
Deuteranopia (green-blind)
#5C81CA
Tritanopia (blue-blind)
#B06B8A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b158cd;
/* rgb */ color: rgb(177, 88, 205);
/* oklch */ color: oklch(61.5% 0.188 317.4);
Tailwind
colors: {
  custom: {
    50: '#cb8bdd',
    500: '#b158cd',
    950: '#000000',
  },
}
SCSS
$custom: #b158cd;
$custom-light: #cb8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b158cd",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 285.641,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61486,
    "c": 0.18812,
    "h": 317.4
  },
  "luminance": 0.20734
}

Semantic roles & 50–950 ramp

primary
#B158CD
secondary
#B4D8A9
accent
#DD4B6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B158CD

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

Preview Lab → · Contrast checker → · Palette generator →

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