#B138B8#B138B8

#B138B8 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.213 H 325.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B138B8
RGBrgb(177, 56, 184)
HSLhsl(297, 53%, 47%)
HSVhsv(297, 70%, 72%)
CMYKcmyk(3.8%, 69.6%, 0%, 27.8%)
CIE-LABlab(46.50, 64.09, -43.26)
CIE-LCHlch(46.50, 77.33, 325.98°)
OKLaboklab(56.65% 0.1755 -0.1202)
OKLCHoklch(56.65% 0.213 325.6)
XYZxyz(28.1968, 15.6380, 46.8714)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138B8 #3FB838
analogous
#7138B8 #B138B8 #B8387F
triadic
#B138B8 #B8B138 #38B8B1
tetradic
#B138B8 #B87138 #3FB838 #387FB8
square
#B138B8 #B87138 #3FB838 #387FB8
split-complementary
#B138B8 #7FB838 #38B871
monochromatic
#571B5A #842A89 #B138B8 #C85FCE #D88EDD

Accessibility & contrast

On white

5.09
#B138B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B138B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138B8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138B8#FFFFFF#000000##FFFFFF
##B138B81.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A65BC
Deuteranopia (green-blind)
#5373B5
Tritanopia (blue-blind)
#B54C74
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b138b8;
/* rgb */ color: rgb(177, 56, 184);
/* oklch */ color: oklch(56.6% 0.213 325.6);
Tailwind
colors: {
  custom: {
    50: '#cc79ce',
    500: '#b138b8',
    950: '#000000',
  },
}
SCSS
$custom: #b138b8;
$custom-light: #cc79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b138b8",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 296.719,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5665,
    "c": 0.21267,
    "h": 325.6
  },
  "luminance": 0.15636
}

Semantic roles & 50–950 ramp

primary
#B138B8
secondary
#88C785
accent
#DD4B53
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B138B8

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

Preview Lab → · Contrast checker → · Palette generator →

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