#B138BB#B138BB

#B138BB is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.215 H 324.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B138BB
RGBrgb(177, 56, 187)
HSLhsl(295, 54%, 48%)
HSVhsv(295, 70%, 73%)
CMYKcmyk(5.3%, 70.1%, 0%, 26.7%)
CIE-LABlab(46.66, 64.61, -44.75)
CIE-LCHlch(46.66, 78.59, 325.30°)
OKLaboklab(56.83% 0.1754 -0.1245)
OKLCHoklch(56.83% 0.215 324.6)
XYZxyz(28.5146, 15.7651, 48.5451)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138BB #42BB38
analogous
#7038BB #B138BB #BB3883
triadic
#B138BB #BBB138 #38BBB1
tetradic
#B138BB #BB7038 #42BB38 #3883BB
square
#B138BB #BB7038 #42BB38 #3883BB
split-complementary
#B138BB #83BB38 #38BB70
monochromatic
#581C5D #842A8C #B138BB #C761D0 #D890DE

Accessibility & contrast

On white

5.06
#B138BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#B138BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138BB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138BB#FFFFFF#000000##FFFFFF
##B138BB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BF
Deuteranopia (green-blind)
#5174B8
Tritanopia (blue-blind)
#B54E76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b138bb;
/* rgb */ color: rgb(177, 56, 187);
/* oklch */ color: oklch(56.8% 0.215 324.6);
Tailwind
colors: {
  custom: {
    50: '#cc7ad0',
    500: '#b138bb',
    950: '#000000',
  },
}
SCSS
$custom: #b138bb;
$custom-light: #cc7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#b138bb",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 295.42,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56826,
    "c": 0.21512,
    "h": 324.6
  },
  "luminance": 0.15763
}

Semantic roles & 50–950 ramp

primary
#B138BB
secondary
#8BC886
accent
#DD4B56
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B138BB

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

Preview Lab → · Contrast checker → · Palette generator →

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