#B138BD#B138BD

#B138BD is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.217 H 324.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B138BD
RGBrgb(177, 56, 189)
HSLhsl(295, 54%, 48%)
HSVhsv(295, 70%, 74%)
CMYKcmyk(6.3%, 70.4%, 0%, 25.9%)
CIE-LABlab(46.78, 64.96, -45.73)
CIE-LCHlch(46.78, 79.44, 324.86°)
OKLaboklab(56.94% 0.1754 -0.1274)
OKLCHoklch(56.94% 0.217 324)
XYZxyz(28.7301, 15.8513, 49.6806)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138BD #44BD38
analogous
#6E38BD #B138BD #BD3887
triadic
#B138BD #BDB138 #38BDB1
tetradic
#B138BD #BD6E38 #44BD38 #3887BD
square
#B138BD #BD6E38 #44BD38 #3887BD
split-complementary
#B138BD #87BD38 #38BD6E
monochromatic
#591C5F #852A8E #B138BD #C662D0 #D791DE

Accessibility & contrast

On white

5.04
#B138BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B138BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138BD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138BD#FFFFFF#000000##FFFFFF
##B138BD1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E66C1
Deuteranopia (green-blind)
#5074BA
Tritanopia (blue-blind)
#B44F77
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b138bd;
/* rgb */ color: rgb(177, 56, 189);
/* oklch */ color: oklch(56.9% 0.217 324.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ad1',
    500: '#b138bd',
    950: '#000000',
  },
}
SCSS
$custom: #b138bd;
$custom-light: #cc7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b138bd",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 294.586,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56944,
    "c": 0.21677,
    "h": 324
  },
  "luminance": 0.1585
}

Semantic roles & 50–950 ramp

primary
#B138BD
secondary
#8DC987
accent
#DE4A57
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B138BD

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

Preview Lab → · Contrast checker → · Palette generator →

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