#B138AC#B138AC

#B138AC is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.203 H 329.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B138AC
RGBrgb(177, 56, 172)
HSLhsl(302, 52%, 46%)
HSVhsv(302, 68%, 69%)
CMYKcmyk(0%, 68.4%, 2.8%, 30.6%)
CIE-LABlab(45.85, 62.07, -37.23)
CIE-LCHlch(45.85, 72.38, 329.04°)
OKLaboklab(55.97% 0.1752 -0.1027)
OKLCHoklch(55.97% 0.203 329.6)
XYZxyz(26.9918, 15.1560, 40.5255)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138AC #38B13D
analogous
#7938B1 #B138AC #B13870
triadic
#B138AC #ACB138 #38ACB1
tetradic
#B138AC #B17938 #38B13D #3870B1
square
#B138AC #B17938 #38B13D #3870B1
split-complementary
#B138AC #70B138 #38B179
monochromatic
#541B52 #83297F #B138AC #CB5BC7 #DA8AD7

Accessibility & contrast

On white

5.21
#B138AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B138AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138AC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138AC#FFFFFF#000000##FFFFFF
##B138AC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B62AF
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#B7476E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b138ac;
/* rgb */ color: rgb(177, 56, 172);
/* oklch */ color: oklch(56.0% 0.203 329.6);
Tailwind
colors: {
  custom: {
    50: '#cc79c5',
    500: '#b138ac',
    950: '#000000',
  },
}
SCSS
$custom: #b138ac;
$custom-light: #cc79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b138ac",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 302.479,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55974,
    "c": 0.20308,
    "h": 329.6
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#B138AC
secondary
#81C484
accent
#DB524C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138AC

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

Preview Lab → · Contrast checker → · Palette generator →

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