#B138B7#B138B7

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

Color values

HEX#B138B7
RGBrgb(177, 56, 183)
HSLhsl(297, 53%, 47%)
HSVhsv(297, 69%, 72%)
CMYKcmyk(3.3%, 69.4%, 0%, 28.2%)
CIE-LABlab(46.44, 63.92, -42.76)
CIE-LCHlch(46.44, 76.91, 326.22°)
OKLaboklab(56.59% 0.1755 -0.1187)
OKLCHoklch(56.59% 0.212 325.9)
XYZxyz(28.0923, 15.5962, 46.3213)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138B7 #3EB738
analogous
#7138B7 #B138B7 #B7387E
triadic
#B138B7 #B7B138 #38B7B1
tetradic
#B138B7 #B77138 #3EB738 #387EB7
square
#B138B7 #B77138 #3EB738 #387EB7
split-complementary
#B138B7 #7EB738 #38B771
monochromatic
#561B59 #842A88 #B138B7 #C95ECE #D88DDC

Accessibility & contrast

On white

5.10
#B138B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B138B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138B7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138B7#FFFFFF#000000##FFFFFF
##B138B71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BB
Deuteranopia (green-blind)
#5473B4
Tritanopia (blue-blind)
#B54C74
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b138b7;
/* rgb */ color: rgb(177, 56, 183);
/* oklch */ color: oklch(56.6% 0.212 325.9);
Tailwind
colors: {
  custom: {
    50: '#cc79cd',
    500: '#b138b7',
    950: '#000000',
  },
}
SCSS
$custom: #b138b7;
$custom-light: #cc79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b138b7",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 297.165,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56593,
    "c": 0.21186,
    "h": 325.9
  },
  "luminance": 0.15594
}

Semantic roles & 50–950 ramp

primary
#B138B7
secondary
#87C784
accent
#DD4B52
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138B7

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

Preview Lab → · Contrast checker → · Palette generator →

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